MCPcopy Create free account
hub / github.com/FastLED/FastLED / print_stats

Method print_stats

tests/profile/json_memory_profile.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 void print_stats(const char* label) {
104 printf("\n=== %s ===\n", label);
105 printf(" Peak memory: %zu bytes\n", peak_bytes.load());
106 printf(" Current memory: %zu bytes\n", current_bytes.load());
107 printf(" Total allocated: %zu bytes\n", total_allocated.load());
108 printf(" Allocations: %d\n", alloc_count.load());
109 printf(" Frees: %d\n", free_count.load());
110 printf(" Active allocs: %zu\n", count_active_allocations());
111 printf(" Leaked bytes: %zu\n", current_bytes.load());
112 }
113};
114
115AllocationStats g_stats;

Callers 1

profile_json_memoryFunction · 0.80

Calls 2

printfFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected