Skip to content

Commit

Permalink
record the cpu usage in a gitignored directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Mar 9, 2023
1 parent 1853e11 commit 9c24608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ci/scripts/collect-cpu-stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
set -euo pipefail
IFS=$'\n\t'

python3 src/ci/cpu-usage-over-time.py &> cpu-usage.csv &
mkdir -p build
python3 src/ci/cpu-usage-over-time.py &> build/cpu-usage.csv &
2 changes: 1 addition & 1 deletion src/ci/scripts/upload-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ "${DEPLOY-0}" -eq "1" ]] || [[ "${DEPLOY_ALT-0}" -eq "1" ]]; then
fi

# CPU usage statistics.
cp cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"
cp build/cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"

# Build metrics generated by x.py.
cp "${build_dir}/metrics.json" "${upload_dir}/metrics-${CI_JOB_NAME}.json"
Expand Down

0 comments on commit 9c24608

Please sign in to comment.