feat: add --tracemalloc flag for memory profiling
Starts tracemalloc before the event loop and dumps the top 25 allocations on shutdown. Accepts optional nframes depth (default 10). Can be combined with --cprofile. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@ derp --config /path/to/derp.toml --verbose
|
||||
| `-c, --config PATH` | Config file path |
|
||||
| `-v, --verbose` | Debug logging |
|
||||
| `--cprofile [PATH]` | Enable cProfile, dump to PATH [derp.prof] |
|
||||
| `--tracemalloc [N]` | Enable tracemalloc, capture N frames deep [10] |
|
||||
| `-V, --version` | Print version |
|
||||
| `-h, --help` | Show help |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user