feat: add --cprofile flag for runtime profiling

Writes cProfile stats to a file on shutdown for performance analysis.
Enable in compose.yaml for container profiling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-21 16:54:29 +01:00
parent d13d090e8e
commit b8d8c22dc8
3 changed files with 9 additions and 1 deletions

View File

@@ -15,4 +15,4 @@ services:
volumes:
- ./src:/app/src:Z,ro
- ./config:/data:Z
command: ["-c", "/data/bouncer.toml", "-v"]
command: ["-c", "/data/bouncer.toml", "-v", "--cprofile", "/data/bouncer.prof"]