Skip to content

Commit

Permalink
boulder/macros: Add ccache stats macros
Browse files Browse the repository at this point in the history
Signed-off-by: Reilly Brogan <[email protected]>
  • Loading branch information
ReillyBrogan committed Jan 22, 2025
1 parent e5ea34d commit 0ffe209
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions boulder/data/macros/actions/ccache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
actions:
- ccache_zero:
description: Zeroes out the ccache stats
command: |
if [[ " ${PATH[*]} " =~ "ccache" ]]; then
ccache --zero-stats
fi
- ccache_stats:
description: Reports the ccache stats since the last time it was zeroed
command: |
if [[ " ${PATH[*]} " =~ "ccache" ]]; then
ccache --show-stats
fi

0 comments on commit 0ffe209

Please sign in to comment.