Skip to content

Conversation

@JasonMoho
Copy link
Contributor

@JasonMoho JasonMoho commented Apr 20, 2025

Adds a simple script that's uses glances to track metrics and save them in JSON format. Supports live plotting.

Currently only CPU util, Memory Util, Disk Bandwidth Usage, and GPU util are tracked.

Run the trace and view live plot with

python3 scripts/trace_metrics.py --live --plot

After killing the trace you can view the full trace with

python3 scripts/trace_metrics.py --plot

Set the output directory with -o. e.g.

python3 scripts/trace_metrics.py --live --plot -o output_metrics/

Results and plots are are stored in the output_directory.

Plot example:
image

@JasonMoho JasonMoho merged commit a518541 into main Apr 20, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants