Skip to content

Commit 6e9c3a4

Browse files
committed
ui: include machine_id in power rail plugin track ordering logic
currently power rail tracks from different machines get mixed together, since we're only sorting by track name. To provide better ux and be consitent with the rest of the ui, make the machine_id the primary sort key, so that we will group rails from the same machine together.
1 parent 6e853ac commit 6e9c3a4

File tree

1 file changed

+1
-1
lines changed
  • ui/src/plugins/dev.perfetto.PowerRails

1 file changed

+1
-1
lines changed

ui/src/plugins/dev.perfetto.PowerRails/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class implements PerfettoPlugin {
4747
COALESCE(friendly_name, raw_power_rail_name) as name,
4848
machine_id as machine
4949
FROM android_power_rails_metadata
50-
ORDER BY name
50+
ORDER BY machine_id, name
5151
`);
5252

5353
if (result.numRows() === 0) {

0 commit comments

Comments
 (0)