diff options
Diffstat (limited to 'ui/src/plugins/dev.perfetto.CoreCommands/index.ts')
-rw-r--r-- | ui/src/plugins/dev.perfetto.CoreCommands/index.ts | 46 |
1 files changed, 7 insertions, 39 deletions
diff --git a/ui/src/plugins/dev.perfetto.CoreCommands/index.ts b/ui/src/plugins/dev.perfetto.CoreCommands/index.ts index 8dc6a6ff8..54cd458f0 100644 --- a/ui/src/plugins/dev.perfetto.CoreCommands/index.ts +++ b/ui/src/plugins/dev.perfetto.CoreCommands/index.ts @@ -19,7 +19,6 @@ import { PluginContext, PluginContextTrace, PluginDescriptor, - addDebugSliceTrack, } from '../../public'; const SQL_STATS = ` @@ -107,7 +106,7 @@ class CoreCommandsPlugin implements Plugin { async onTraceLoad(ctx: PluginContextTrace): Promise<void> { ctx.registerCommand({ id: 'dev.perfetto.CoreCommands#RunQueryAllProcesses', - name: 'Run query: all processes', + name: 'Run query: All processes', callback: () => { ctx.tabs.openQuery(ALL_PROCESSES_QUERY, 'All Processes'); }, @@ -138,7 +137,7 @@ class CoreCommandsPlugin implements Plugin { callback: () => { ctx.tabs.openQuery( CPU_TIME_BY_CPU_BY_PROCESS, - 'CPU Time by CPU by process', + 'CPU time by CPU by process', ); }, }); @@ -163,18 +162,8 @@ class CoreCommandsPlugin implements Plugin { }); ctx.registerCommand({ - id: 'dev.perfetto.CoreCommands#PinFtraceTracks', - name: 'Pin ftrace tracks', - callback: () => { - ctx.timeline.pinTracksByPredicate((tags) => { - return !!tags.name?.startsWith('Ftrace Events Cpu '); - }); - }, - }); - - ctx.registerCommand({ id: 'dev.perfetto.CoreCommands#UnpinAllTracks', - name: 'Unpin all tracks', + name: 'Unpin all pinned tracks', callback: () => { ctx.timeline.unpinTracksByPredicate((_) => { return true; @@ -184,7 +173,7 @@ class CoreCommandsPlugin implements Plugin { ctx.registerCommand({ id: 'dev.perfetto.CoreCommands#ExpandAllGroups', - name: 'Expand all groups', + name: 'Expand all track groups', callback: () => { ctx.timeline.expandGroupsByPredicate((_) => { return true; @@ -194,7 +183,7 @@ class CoreCommandsPlugin implements Plugin { ctx.registerCommand({ id: 'dev.perfetto.CoreCommands#CollapseAllGroups', - name: 'Collapse all groups', + name: 'Collapse all track groups', callback: () => { ctx.timeline.collapseGroupsByPredicate((_) => { return true; @@ -204,7 +193,7 @@ class CoreCommandsPlugin implements Plugin { ctx.registerCommand({ id: 'dev.perfetto.CoreCommands#PanToTimestamp', - name: 'Pan To Timestamp', + name: 'Pan to timestamp', callback: (tsRaw: unknown) => { if (exists(tsRaw)) { if (typeof tsRaw !== 'bigint') { @@ -222,29 +211,8 @@ class CoreCommandsPlugin implements Plugin { }); ctx.registerCommand({ - id: 'test', - name: 'Make Test Debug Track', - callback: () => { - addDebugSliceTrack( - ctx.engine, - { - sqlSource: ` - SELECT * - FROM slice - WHERE name like 'a%' - LIMIT 10000 - `, - }, - 'Track Name', - {ts: 'ts', dur: 'dur', name: 'name'}, - [], - ); - }, - }); - - ctx.registerCommand({ id: 'dev.perfetto.CoreCommands#ShowCurrentSelectionTab', - name: 'Show Current Selection Tab', + name: 'Show current selection tab', callback: () => { ctx.tabs.showTab('current_selection'); }, |