PerfEvent(name, start_ns, end_ns, category=None, process_id=None, thread_id=None, phase='X', **kwargs)¶
A performance related event: timer, counter, etc.
name (str) – The name of this event like “draw”.
start_ns (int) – Start time in nanoseconds.
end_ns (int) – End time in nanoseconds.
category (str) – Comma separated categories such has “render,update”.
process_id (int) – The process id that produced the event.
thread_id (int) – The thread id that produced the event.
phase (str) – The Chrome Tracing “phase” such as “X”, “I”, “C”.
**kwargs (dict) – Additional keyword arguments for the “args” field of the event.
The time span when the event happened.
The process and thread that produced the event.
- The Chrome Tracing phase (event type):
“X” - Complete Events “I” - Instant Events “C” - Counter Events
The time stamps are from perf_counter_ns() and do not indicate time of day. The origin is arbitrary, but subtracting two counters results in a valid span of wall clock time. If start is the same as the end the event was instant.
Google the phrase “Trace Event Format” for the full Chrome Tracing spec.
Duration in milliseconds.
Duration in nanoseconds.
Duration in microseconds.
Start time in milliseconds.
Start time in microseconds.