From f372ebcb8e6d9d7787d14dbfe422806336557939 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sat, 18 Apr 2026 16:44:06 +0800 Subject: [PATCH] chore: callgrind --- .gitignore | 1 + Justfile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 627929b..f65d8f6 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ prof.json *.cpuprofile *.cpuprofile.gz *v8.log* +callgrind.out.* diff --git a/Justfile b/Justfile index afc96a7..b6bba19 100644 --- a/Justfile +++ b/Justfile @@ -29,3 +29,8 @@ [no-exit-message] @evalp expr: cargo run --release --features prof -- eval --expr '{{expr}}' + +[no-exit-message] +[positional-arguments] +@cg *args='': + valgrind --tool=callgrind --dump-instr=yes --collect-jumps=yes "$@"