Add just flamegraph target
This commit is contained in:
parent
8885d295bb
commit
5c7cf52b25
2 changed files with 7 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,7 +3,9 @@
|
||||||
/debian/cosmic-files.substvars
|
/debian/cosmic-files.substvars
|
||||||
/debian/cosmic-files/
|
/debian/cosmic-files/
|
||||||
/debian/files
|
/debian/files
|
||||||
|
/flamegraph.svg
|
||||||
/heaptrack.*
|
/heaptrack.*
|
||||||
|
/perf.*
|
||||||
/target/
|
/target/
|
||||||
/test/
|
/test/
|
||||||
/vendor.tar
|
/vendor.tar
|
||||||
|
|
|
||||||
6
justfile
6
justfile
|
|
@ -73,11 +73,15 @@ run *args:
|
||||||
test *args:
|
test *args:
|
||||||
cargo test {{args}}
|
cargo test {{args}}
|
||||||
|
|
||||||
|
flamegraph *args:
|
||||||
|
cargo flamegraph --release --bin cosmic-files -- --no-daemon {{args}}
|
||||||
|
xdg-open flamegraph.svg
|
||||||
|
|
||||||
heaptrack *args:
|
heaptrack *args:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
rm -fv heaptrack.cosmic-files.*
|
rm -fv heaptrack.cosmic-files.*
|
||||||
cargo heaptrack --profile release-with-debug --bin cosmic-files -- {{args}}
|
cargo heaptrack --profile release-with-debug --bin cosmic-files -- --no-daemon {{args}}
|
||||||
zstd -dc < heaptrack.cosmic-files.*.raw.zst | /usr/lib/heaptrack/libexec/heaptrack_interpret | zstd -c > heaptrack.cosmic-files.zst
|
zstd -dc < heaptrack.cosmic-files.*.raw.zst | /usr/lib/heaptrack/libexec/heaptrack_interpret | zstd -c > heaptrack.cosmic-files.zst
|
||||||
heaptrack_gui heaptrack.cosmic-files.zst
|
heaptrack_gui heaptrack.cosmic-files.zst
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue