Vega Studio Performance CLI
Performance CLI is installed as part of the Vega Developer Tools (VDT). To analyze app performance, you can use either the command palette in the Vega Studio extension or the Performance command-line interface (CLI).
Prerequisites
- Install the Vega SDK.
-
Verify if the Performance CLI is installed in your development environment:
vega exec perf --help
Help option
To explore options for all Performance CLI commands:
vega exec perf --help
To get information about a specific command:
vega exec perf [command] --help
To see all options for the record command:
vega exec perf record --help
Commonly used commands
vega exec perf record
Use the record command to start the Event Recording tool. This captures performance events for analysis. The command takes the following arguments:
--app-name- Specifies the app's main interactive component name frommanifest.toml--recording-timeout- Sets the recording duration in seconds (default: 120s)--device-serial-number- Sets the device serial number when you have multiple devices--output-dir- Specifies the output directory path--trace-categories- Specifies platform trace categories to enable during tracing. Default categories:app,graphics,ui,lifecycle,input,video, andwebview--enable-cpu-sched- Enables CPU scheduler event recording during tracing (disabled by default)
To record performance events for your app:
vega exec perf record --app-name com.<COMPANY NAME>.<APPNAME>.main
To record with a specific timeout:
vega exec perf record --app-name com.<COMPANY NAME>.<APPNAME>.main --recording-timeout 60
To record with custom trace categories:
vega exec perf record --app-name com.<COMPANY NAME>.<APPNAME>.main --trace-categories app,graphics,ui,video
To record with CPU scheduler events enabled:
vega exec perf record --app-name com.<COMPANY NAME>.<APPNAME>.main --enable-cpu-sched
vega exec perf activity-monitor
Use the activity-monitor command to start the Activity Monitor tool. The command takes the following arguments:
--app-name- Specifies the app's main interactive component name frommanifest.toml--record-cpu-profiling- Enables the JavaScript CPU Profiler during recording--sourcemap-file-path- Specifies the JavaScript source map path (required when using--record-cpu-profiling)
To monitor app activity:
vega exec perf activity-monitor --app-name com.<COMPANY NAME>.<APPNAME>.main
To monitor with CPU profiling enabled:
vega exec perf activity-monitor --app-name com.<COMPANY NAME>.<APPNAME>.main --record-cpu-profiling --sourcemap-file-path /path/to/sourcemap
vega exec perf memory-monitor
Use the memory-monitor command to start the Memory Monitor tool. The command takes the following arguments:
--app-name- Specifies the app's main interactive component name frommanifest.toml--keplerscript-app- Specifies the app is a React Native-based app for Vega--relative-gc-count- Shows Garbage Collection (GC) count as delta between current and previous GC count (available only with React Native-based apps)
To monitor app memory:
vega exec perf memory-monitor --app-name com.<COMPANY NAME>.<APPNAME>.main
To monitor with relative garbage collection count for React Native apps:
vega exec perf memory-monitor --app-name com.<COMPANY NAME>.<APPNAME>.main --keplerscript-app --relative-gc-count
To start and stop recording sessions:
q to quit instead.For Mac:
- Press
sto start recording. - Press
sagain to stop the recording.
If pressing s doesn't work, press S and Return.
For Linux:
- Press
sto start recording. - Press
sagain to stop the recording.
If pressing s doesn't work, press S and Enter.
Press q and Return, or q and Enter, to quit recording.
vega exec perf kpi-visualizer
Use the kpi-visualizer command to measure your app KPIs. The command takes the following arguments:
--app-name- Specifies the app's main interactive component name frommanifest.toml--overridden-video-fps- Overrides the frames per second for video fluidity calculations during video playback
To measure app KPIs:
vega exec perf kpi-visualizer --app-name com.<COMPANY NAME>.<APPNAME>.main
To override video FPS for video fluidity calculations:
vega exec perf kpi-visualizer --app-name com.<COMPANY NAME>.<APPNAME>.main --overridden-video-fps 30
Related topics
- 💬 Community: Inspect JS traces from Vega Apps
- 💬 Community: Using React DevTools to profile component rendering
- Vega SDK CLI Reference
- Vega Studio Commands
Last updated: Dec 10, 2025

