Add profiling capability

This commit is contained in:
cpq committed 2023-12-08 17:00:42 +00:00
1 parent c8105cffba
commit 693316de44
15 files changed
+240 -24

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ struct mg_connection {
unsigned long id; // Auto-incrementing unique connection ID
struct mg_iobuf recv; // Incoming data
struct mg_iobuf send; // Outgoing data
struct mg_iobuf prof; // Profile data enabled by MG_ENABLE_PROFILE
mg_event_handler_t fn; // User-specified event handler function
void *fn_data; // User-specified function parameter
mg_event_handler_t pfn; // Protocol-specific handler function