Counter samples continue until the end of track
- Dominant language
- C++
- Stars
- 6.5k
- Forks
- 868
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 218
Description
When using counter events (`"ph":"C"`) in Chrome Trace Event JSON Format, the last counter value automatically extends horizontally until the end of the entire trace timeline, even when the measurement has actually stopped. This happens when opening a JSON trace file in Perfetto UI, but not the legacy Chrome viewer. For example:
Our desired behavior is to indicate that measurement has ended, rather than extending the last value indefinitely. Ideally:
- The counter line stops at the last sample timestamp
- Or shows a visual indication that no more data is available
- Or drops to null/undefined to indicate "no data"
Is there a recommended way to terminate a counter track to prevent this extension? We considered the idea of adding a final counter event with value `0` (but this is inaccurate + the line still continues)
@LalitMaganti
Contributor guide
Assessment
This issue has not been assessed yet.