perfetto-ui: Add process_scheduling track
Add a process_scheduling track with summarizes the scheduling activity
of a whole process. When zoomed out shows a graph of bucketed utilization
over time. When zoomed in shows #num_cpus tiny slice tracks, each which
shows when threads for that process are scheduled on the given CPU.
Also:
- Fix a small bug where cpu_slices incorrectly constructed a table name.
- Increase the minimal size to render a slice.
- Forward mouse events to summary tracks.
Change-Id: Ic6602b087e07aa54be087cd7ca82c44602613ccc
diff --git a/ui/src/frontend/track_panel.ts b/ui/src/frontend/track_panel.ts
index bdb6d10..591658e 100644
--- a/ui/src/frontend/track_panel.ts
+++ b/ui/src/frontend/track_panel.ts
@@ -118,10 +118,8 @@
}
}
-interface TrackContentAttrs {
- track: Track;
-}
-class TrackContent implements m.ClassComponent<TrackContentAttrs> {
+export interface TrackContentAttrs { track: Track; }
+export class TrackContent implements m.ClassComponent<TrackContentAttrs> {
view({attrs}: m.CVnode<TrackContentAttrs>) {
return m('.track-content', {
onmousemove: (e: MouseEvent) => {