Skip to content

Commit

Permalink
perf: add flamegraph and massif scripts to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Mar 7, 2024
1 parent 452097d commit 3f1d2cf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
.idea
.vscode
issues
flamegraph.svg
massif.out.*
perf.data
perf.data.old
stacks.folded
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ build-all: build-x86 build-arm-v7 build-aarch64
docker-build: build-all
docker buildx build --platform linux/amd64,linux/arm/v7,linux/arm64/v8 . -t cocogitto/cog:latest -f docker/Dockerfile

changelog-inferno:
perf record --call-graph dwarf cog changelog
perf script | inferno-collapse-perf > stacks.folded
cat stacks.folded | inferno-flamegraph > flamegraph.svg
chromium flamegraph.svg

changelog-massif:
valgrind --tool=massif cog changelog

0 comments on commit 3f1d2cf

Please sign in to comment.