Skip to content

Commit

Permalink
Add just target for heaptrack
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 11, 2024
1 parent e8df9bf commit 39c91b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/debian/cosmic-files.substvars
/debian/cosmic-files/
/debian/files
/heaptrack.*
/target/
/vendor.tar
/vendor/
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ run *args:
test *args:
cargo test {{args}}

heaptrack *args:
#!/usr/bin/env bash
set -ex
rm -fv heaptrack.cosmic-files.*
cargo heaptrack --profile release-with-debug --bin cosmic-files -- {{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
# Installs files
install:
install -Dm0755 {{bin-src}} {{bin-dst}}
Expand Down

0 comments on commit 39c91b9

Please sign in to comment.