commit | c687c2ea382e843ef9b4a39b2d2fdb7c9720829c | [log] [tgz] |
---|---|---|
author | Sami Kyostila <skyostil@google.com> | Thu Jun 03 13:00:45 2021 +0100 |
committer | Sami Kyostila <skyostil@google.com> | Thu Jun 03 13:00:45 2021 +0100 |
tree | a8c4d5e436eaf8cbdcd24dc445be3729c334929a | |
parent | 34eb6a14728a870046c2637dbfb909d02936b84c [diff] |
tracing: Add support for track event timestamps using custom clocks Make it possible to write track events using custom timestamps together with a custom reference clock. For example: TRACE_EVENT_BEGIN("cat", "Name", perfetto::TraceTimestamp{ perfetto::protos::BuiltinClock::BUILTIN_CLOCK_MONOTONIC, timestamp_ns}); You can also use a completely custom clock id, but will also need to manually emit a clock snapshot mapping that clock to the builtin ones. Change-Id: I2635eef84dc62368e6e529f43ac5ad9e751c601a
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.