feat(servers): report frame timing, log slow frames, answer profiling requests

dServer sends the frames with each traffic report, logs a frame over slow_frame_ms (default 250, reread on a settings reload) as one line with its heaviest path, and runs profiling sessions master forwards. Master routes the dashboard's requests to the named server, profiles itself and passes results on. Task 96.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-29 22:06:30 -05:00
parent d0c7b089ff
commit 63666c3c6b
5 changed files with 150 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ log_to_console=1
# 0 or 1, should log debug (developer only) statements to console for debugging, not needed for normal operation
log_debug_statements=0
# A main loop frame (one pass of a server's loop) that takes at least this many milliseconds is logged as one line with
# what took the time, and shown on the dashboard's Performance page. 0 turns it off. See docs/Dashboard.md, Performance.
slow_frame_ms=250
# The public facing IP address. Can be 'localhost' for locally hosted servers
external_ip=localhost