Skip to content
Discussion options

You must be logged in to vote

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:

INCLUDE PERFETTO MODULE slices.cpu_time;

SELECT AVG(cpu_time) FROM thread_slice_cpu_time WHERE name = 'my_tag'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LalitMaganti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants