diff --git a/Cargo.toml b/Cargo.toml index aebedd48..5f149b5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,10 @@ git = "https://github.com/smithay/client-toolkit/" package = "smithay-client-toolkit" # rev = "c583de8" +[profile.release-with-debug] +inherits = "release" +debug = true + [profile.release] lto = "thin" diff --git a/justfile b/justfile index 120fe9c7..f3c2ce98 100644 --- a/justfile +++ b/justfile @@ -137,6 +137,14 @@ uninstall: find 'resources'/'default_schema' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} rm -rf {{default-schema-target}}/{} find 'resources'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} rm {{iconsdir}}/{} +heaptrack *args: + #!/usr/bin/env bash + set -ex + rm -fv heaptrack.cosmic-settings.* + cargo heaptrack --profile release-with-debug --bin cosmic-settings -- {{args}} + zstd -dc < heaptrack.cosmic-settings.*.raw.zst + /usr/lib/heaptrack/libexec/heaptrack_env | zstd -c > heaptrack_env.cosmic-settings.zst + heaptrack_gui heaptrack.cosmic-settings.zst + # Dependencies cmd-depends := " cargo