From 05cfb5b140fdcec687a37a6d45056785ea241874 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 11 Feb 2025 22:35:41 +0000 Subject: [PATCH] Add commands for profiling tui --- Cargo.toml | 3 +++ Makefile | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 67f0c5d..94fe5f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,3 +28,6 @@ clap = { version = "4.5.28", features = ["derive"] } tracing-subscriber = { version = "0.3.19", features = ["json", "env-filter"] } dirs = "5.0.1" dark-light = "1.1.1" + +[profile.release] +debug = true diff --git a/Makefile b/Makefile index 00a3081..526dae9 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,10 @@ tui-attach: tui-launch: cargo r -p tui -- launch.json -n Launch -b test.py:4 +.PHONY: profile-tui-launch +profile-tui-launch: + cargo flamegraph --root -p tui --release -- launch.json -n Launch -b test.py:4 + .PHONY: repl-attach repl-attach: cargo r -p repl -- launch.json -n Attach -b attach.py:29