perfetto-ui: Show slice wakeup info
Click on a slice and see the wakeup information, on the main UI
and in the details panel.
See here: https://taylori-dot-perfetto-ui.appspot.com/#!/?s=b1830d45dc57166937cb2f12d6cde9114265363ef7312eb50c6616f77bd39
Also fixed a small bug in the drawing of vertical lines.
Bug:118895197
Change-Id: Ic7d6df601281102402a2cf6e48d8628bd9ab4679
diff --git a/ui/src/frontend/track_panel.ts b/ui/src/frontend/track_panel.ts
index ca75f50..950fed9 100644
--- a/ui/src/frontend/track_panel.ts
+++ b/ui/src/frontend/track_panel.ts
@@ -259,6 +259,15 @@
size.height,
`rgba(52,69,150,0.3)`);
}
+ if (globals.state.currentSelection.kind === 'SLICE' &&
+ globals.sliceDetails.wakeupTs !== undefined) {
+ drawVerticalLineAtTime(
+ ctx,
+ localState.timeScale,
+ globals.sliceDetails.wakeupTs,
+ size.height,
+ `black`);
+ }
}
}
}