This module contains a small library for generating trace files that can be viewed with Chrome by visiting chrome://tracing. Trace events are represented by the various subclasses of TraceEvent, and are encoded by a TraceEncoder. The trace file format is described in this doc.

The trace format is designed for low-level profiling data, so events are grouped by process and thread. TraceEncoder lets you create TraceLoggers given process and thread names. All events logged to a TraceLogger are grouped under those process and thread names.


Link copied to clipboard