Can we select scheduler tracks by sql query?
- Dominant language
- C++
- Stars
- 6.5k
- Forks
- 868
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 218
Description
Hi,
I recent discovered the commands to "Pin slice tracks from SQL query." This is really nice, as it allows me to filter and pin a number of threads using sql filter. I wonder if we can also select the CPU scheduling event tracks somehow with this command?
In particular, I'm referring to the scheduling track like the one in the doc: https://perfetto.dev/docs/data-sources/cpu-scheduling where we can see the thread in "Running" "Runnable" state, etc.
I usually pin multiple such scheduling event tracks, and select all time range to get the schedule time breakdown view.
Contributor guide
Research direction
Start with the existing “Pin slice tracks from SQL query” command and the CPU scheduling documentation linked in the issue. Trace how SQL-selected tracks are identified and pinned, then determine how scheduler tracks could participate in that flow. Done means CPU scheduling tracks can be selected by SQL and used with the full-time-range schedule breakdown view.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100