Skip to content

Commit

Permalink
Add commands for profiling tui
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Feb 11, 2025
1 parent 6e9b124 commit 05cfb5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05cfb5b

Please sign in to comment.