From 4c4db1da3738701d5aed9b79d60fc45c5bde5dfc Mon Sep 17 00:00:00 2001 From: m1212e <14091540+m1212e@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:05:13 +0200 Subject: [PATCH] docs: Add hint for memory timeline in debugger (#12923) --- docs/project/benchmarking.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/project/benchmarking.md b/docs/project/benchmarking.md index 9f7546db7f..61da927f34 100644 --- a/docs/project/benchmarking.md +++ b/docs/project/benchmarking.md @@ -171,6 +171,8 @@ Once imported, you should see something like this: {% image alt="Viewing heap snapshot in Safari" src="https://user-images.githubusercontent.com/709451/204429337-b0d8935f-3509-4071-b991-217794d1fb27.png" caption="Viewing heap snapshot in Safari Dev Tools" /%} +> The [web debugger](https://bun.sh/docs/runtime/debugger#inspect) also offers the timeline feature which allows you to track and examine the memory usage of the running debug session. + ### Native heap stats Bun uses mimalloc for the other heap. To report a summary of non-JavaScript memory usage, set the `MIMALLOC_SHOW_STATS=1` environment variable. and stats will print on exit.