commit | 6f263fd8007e074715cbe84dca8b9046b24a4e90 | [log] [tgz] |
---|---|---|
author | Eric Seckler <eseckler@google.com> | Thu Oct 24 16:48:24 2019 +0100 |
committer | Eric Seckler <eseckler@google.com> | Thu Oct 24 16:13:24 2019 +0000 |
tree | 93ca64a2978acf9df22cbc7c1ebcfa1b3322ce56 | |
parent | d4a217b1f81e0a2d5f49fa2fada7f995be779014 [diff] |
processor: Handle chrome traces with clock_id but no ClockSnapshot Chromium doesn't emit ClockSnapshots but sets the clock_id field for some packets. Turns out this currently causes trace import to fail. Work around this problem by ignoring the translation of the packet's timestamp if no ClockSnapshots were seen in the trace and its specified clock ID is MONOTONIC - in this case, the service didn't emit ClockSnapshots (in-app tracing in chrome) and thus all timestamps we see are in trace time. Change-Id: I6c5e9a36066fce40b0e7e0f20306e81ac040f357 Bug: 143276399
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.