Counter track display mode affects fields in properties
I'm not sure if it is expected behavior but changing counter track display mode affects fields in properties. Shouldn't it always look like in "Value" mode?
Mode: Value
Name Cpu 5 sched/sched_switch Start time 00:00:00.130036552 Value 116 Delta 1 Δ Rate 67.868 Δ/s Duration 14ms 734µs 528ns
Mode: Delta
Name Cpu 5 sched/sched_switch Start time 00:00:00.130036552 Value 116 Delta 1 Δ Duration 14ms 734µs 528ns
Mode: Rate
Name Cpu 5 sched/sched_switch Start time 00:00:00.130036552 Rate 67.868 Δ/s Duration 14ms 734µs 528ns
No this was an intentional choice from me to change the properties visible: in rate mode, IMO value and delta don't make too mcuh sense and have the potential to confuse people (is it the value you are seeing on the chart or the raw value, is it the delta you are seeing on the chart or the raw delta, is it the rate or the rate of the rate).
I just wanted to avoid that confusion completely by not showing this info. Happy to change this if @stevegolton feels its not too confusing.
I assume this is mainly due to the fact that some counters can be in delta/rate mode initially. For those counters the raw 'value' actually makes little sense, and the delta/rate value is actually considered to be the 'value' in a sense.
I'm not sure about the best way to portray this, but I would usually lean towards being honest and consistent - which in this case just means show what we currently show in 'value' mode regardless of what mode we're in.
I do agree with Steve, when I'm looking at traces I'm already in a confused state about what is happening then such differences in presentation makes things bit harder. I liked the current delta Δ, rate Δ/s units - that made things easy to correlate.
Fixed by https://github.com/google/perfetto/pull/6005, finally got round to this!