feat: mem prof can gen flamegraph directly (#6073)

* feat: mem-prof

* fix: use enum&update how to
This commit is contained in:
discord9
2025-05-09 17:43:24 +08:00
committed by GitHub
parent 79f584316e
commit 04cae4b21e
7 changed files with 162 additions and 10 deletions

View File

@@ -44,6 +44,10 @@ Dump memory profiling data through HTTP API:
```bash
curl -X POST localhost:4000/debug/prof/mem > greptime.hprof
# or output flamegraph directly
curl -X POST "localhost:4000/debug/prof/mem?output=flamegraph" > greptime.svg
# or output pprof format
curl -X POST "localhost:4000/debug/prof/mem?output=proto" > greptime.pprof
```
You can periodically dump profiling data and compare them to find the delta memory usage.