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/
|
||||
/debian/files
|
||||
/flamegraph.svg
|
||||
/heaptrack.*
|
||||
/perf.*
|
||||
/target/
|
||||
/test/
|
||||
/vendor.tar
|
||||
|
|
|
|||
6
justfile
6
justfile
|
|
@ -73,11 +73,15 @@ run *args:
|
|||
test *args:
|
||||
cargo test {{args}}
|
||||
|
||||
flamegraph *args:
|
||||
cargo flamegraph --release --bin cosmic-files -- --no-daemon {{args}}
|
||||
xdg-open flamegraph.svg
|
||||
|
||||
heaptrack *args:
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
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
|
||||
heaptrack_gui heaptrack.cosmic-files.zst
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue