TrackEvent counter from different tracks has different range #2460
Answered
by
LalitMaganti
wangjiyang
asked this question in
Q&A
-
|
Hi, I am using python perfetto lib to write track events sythetically. However, i found TrackEvent counter from different tracks has different range. This makes tracks difficult to compare. Eg, if i want to compare interrupt counts of different irq name, which resides in different tracks. If they have different range, lower value curves may actually have very big counter value, and developers may not notice it. |
Beta Was this translation helpful? Give feedback.
Answered by
LalitMaganti
Aug 8, 2025
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LalitMaganti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is working as implemented as in most cases you don't want counters to share a y-axis but if the counters are linked, makes sense to change a y-axis range.
We'd be open to adding a "range key" option to the CounterDescriptor [1] which would allow you to indicate that all tracks with the same key and same parent id for the track should have the same y-axis in the UI. The code for this already exists in the UI through the use of the yRangeShareKey [2]. Would just require some plumbing work in trace processor to parse the proto (around [3]) + some work in the TrackEvent UI plugin to take advantage of this [4].
[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/perfe…