Skip to content

Commit 3a952f5

Browse files
authored
Print also the status output right after cli load command (#6019)
Previously, we didn't show any info about the profile that's being loaded to after `pq load xyz`. This status output at least shows some basic information like, selected thread, time range and filters.
1 parent e775e55 commit 3a952f5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

profiler-cli/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ Examples:
116116
opts.symbolServer
117117
);
118118
console.log(`Session started: ${sessionId}`);
119+
const status = await sendCommand(
120+
SESSION_DIR,
121+
{ command: 'status' },
122+
sessionId
123+
);
124+
console.log(formatOutput(status, opts.json ?? false));
119125
});
120126

121127
// profiler-cli status

0 commit comments

Comments
 (0)