mirror of
https://github.com/aphrody-labs/cosmic-files.git
synced 2026-10-13 20:16:48 +00:00
Add just flamegraph target
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -3,7 +3,9 @@
|
||||
/debian/cosmic-files.substvars
|
||||
/debian/cosmic-files/
|
||||
/debian/files
|
||||
/flamegraph.svg
|
||||
/heaptrack.*
|
||||
/perf.*
|
||||
/target/
|
||||
/test/
|
||||
/vendor.tar
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user