From 5e46dbae171c4ff1e005a6222216da9f095fd9a5 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 9 Feb 2026 19:11:55 -0600 Subject: [PATCH] a better way to profile --- flake.nix | 1 + justfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e7c6256..22d27f5 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,7 @@ just sqlx-cli cargo-watch + samply ]; LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${ diff --git a/justfile b/justfile index 54a272b..796b5a8 100644 --- a/justfile +++ b/justfile @@ -22,7 +22,7 @@ clean: test: cargo test --benches --tests --all-features -- --nocapture profile: - cargo flamegraph --profile release -- {{verbose}} {{ui}} + samply record cargo run --release -- {{verbose}} {{ui}} alias b := build alias r := run