From 437cd831b96e0d03ec2b89452da1631def0f1164 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 14 Nov 2024 11:20:56 -0500 Subject: [PATCH] feat: add heaptrack to justfile --- Cargo.toml | 4 ++++ justfile | 8 ++++++++ 2 files changed, 12 insertions(+) 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