debug: add memory debug window

enable with:

$ cargo build --release --features memory

and then click the memory widget on the chrome sidepanel

currently doesn't track C allocations... we should fix that

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-08 13:27:37 -07:00
parent 738b5e71da
commit f25735f89e
5 changed files with 288 additions and 7 deletions

View File

@@ -28,6 +28,7 @@ tracing-appender = { workspace = true }
tracing-subscriber = { workspace = true }
tracing = { workspace = true }
profiling = { workspace = true }
re_memory = { workspace = true, optional = true }
[dev-dependencies]
tempfile = { workspace = true }
@@ -45,6 +46,7 @@ path = "src/notedeck.rs"
[features]
default = []
memory = ["re_memory"]
puffin = ["profiling/profile-with-puffin", "dep:puffin"]
debug-widget-callstack = ["egui/callstack"]
debug-interactive-widgets = []