feat(net): frame timing section in SERVER_TRAFFIC, profiling messages

An optional section after marker 3 carries the report's frame timing; older readers stop before it and reports without it still read. Phase times go with their count so readers with fewer or more phases read them. PROFILE_REQUEST and PROFILE_RESULT are appended to the master messages (44, 45). Task 96.

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

View File

@@ -84,5 +84,10 @@ namespace MessageType {
CHAT_HANDOFF,
// Master -> worlds during a live update: a new chat server is up; connect and send it who is online
CHAT_SERVER_READY,
// Dashboard -> master -> one server: start or stop a profiling session of its main loop (see Profiling.h)
PROFILE_REQUEST,
// Any server -> master -> dashboard: a profiling session started, failed or finished with its scope tree
PROFILE_RESULT,
};
}