1package org.openqa.selenium.logging.profiler;2public enum EventType {3 NETWORK(1),4 CPU(2),5 MEMORY(3),6 GC(4),7 UNKNOWN(0);8 private final int type;9 EventType(int type) {10 this.type = type;11 }12 public int getType() {13 return type;14 }15}16package org.openqa.selenium.logging.profiler;17public enum EventCategory {18 OTHER(0),19 LOAD(1),20 SCRIPT(2),21 RENDER(3),22 GC(4),23 UNKNOWN(0);24 private final int category;25 EventCategory(int category) {26 this.category = category;27 }28 public int getCategory() {29 return category;30 }31}32package org.openqa.selenium.logging.profiler;33import org.openqa.selenium.logging.LogEntry;34public class ProfilerLogEntry extends LogEntry {35 private final int type;36 private final int category;37 private final int line;38 private final String source;39 private final String url;40 private final String stackTrace;41 private final String message;42 private final long startTime;43 private final long endTime;44 private final long duration;45 private final int depth;46 private final int memory;47 public ProfilerLogEntry(long timestamp, int type, int category, int line, String source, String url,48 long duration, int depth, int memory) {49 super(timestamp, "");50 this.type = type;51 this.category = category;52 this.line = line;53 this.source = source;54 this.url = url;55 this.stackTrace = stackTrace;56 this.message = message;57 this.startTime = startTime;58 this.endTime = endTime;59 this.duration = duration;60 this.depth = depth;61 this.memory = memory;62 }63 public int getType() {64 return type;65 }66 public int getCategory() {67 return category;68 }69 public int getLine() {70 return line;71 }72 public String getSource() {73 return source;74 }75 public String getUrl() {76 return url;77 }78 public String getStackTrace() {79 return stackTrace;80 }81 public String getMessage() {82 return message;83 }