Repository navigation
How to query actual "Running" duration for specific slices in slices table? #1614
Answered
by
LalitMaganti
BoJunHuang
asked this question in
Q&A
|
I had a repeated task which would be executed every 100ms. I use following SQL command to calculate the average duration of this task: But when I look into the detail information of each slice on UI, the duration field sometimes might be sum of 3 values: |
Answered by
LalitMaganti
May 22, 2025
Replies: 1 comment
|
You can do this very easily with the standard library of trace processor: https://perfetto.dev/docs/analysis/stdlib-docs#slices-cpu_time. Specifically you want the thread_slice_cpu_time table. If you want the average across slices as in your example, you would do: |
0 replies
Answer selected by
LalitMaganti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do this very easily with the standard library of trace processor: https://perfetto.dev/docs/analysis/stdlib-docs#slices-cpu_time. Specifically you want the thread_slice_cpu_time table.
If you want the average across slices as in your example, you would do: