feat: add --tracemalloc flag for memory profiling
Uses Python's built-in tracemalloc module to show top N memory allocators on exit. Orthogonal to --cprofile; both can run together. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,8 @@ s5p -m 512 # max concurrent connections
|
||||
s5p --api 127.0.0.1:1081 # enable control API
|
||||
s5p --cprofile # profile to s5p.prof
|
||||
s5p --cprofile out.prof # profile to custom file
|
||||
s5p --tracemalloc # memory profile (top 10)
|
||||
s5p --tracemalloc 20 # memory profile (top 20)
|
||||
```
|
||||
|
||||
## Container
|
||||
|
||||
Reference in New Issue
Block a user