26 lines
913 B
C
26 lines
913 B
C
|
|
#include "free_dispatch_stats_box.h"
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
FreeDispatchStats g_free_dispatch_stats = {0};
|
||
|
|
|
||
|
|
__attribute__((destructor))
|
||
|
|
static void free_dispatch_stats_dump(void) {
|
||
|
|
if (!free_dispatch_stats_enabled()) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
fprintf(stderr, "[FREE_DISPATCH_STATS] total=%lu tiny=%lu mid=%lu large=%lu ultra=%lu tiny_legacy=%lu pool=%lu v6=%lu route_calls=%lu env_checks=%lu\n",
|
||
|
|
g_free_dispatch_stats.total_calls,
|
||
|
|
g_free_dispatch_stats.domain_tiny,
|
||
|
|
g_free_dispatch_stats.domain_mid,
|
||
|
|
g_free_dispatch_stats.domain_large,
|
||
|
|
g_free_dispatch_stats.route_ultra,
|
||
|
|
g_free_dispatch_stats.route_tiny_legacy,
|
||
|
|
g_free_dispatch_stats.route_pool_v1,
|
||
|
|
g_free_dispatch_stats.route_core_v6,
|
||
|
|
g_free_dispatch_stats.route_for_class_calls,
|
||
|
|
g_free_dispatch_stats.env_checks);
|
||
|
|
|
||
|
|
fflush(stderr);
|
||
|
|
}
|