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

Function malloc

tests/profile/json_memory_profile.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177extern "C" {
178
179void* malloc(size_t size) {
180#ifdef _WIN32
181 init_real_allocators();
182#endif
183 void* ptr = real_malloc(size);
184 if (g_tracking_enabled) {
185 g_stats.on_malloc(ptr, size);
186 }
187 return ptr;
188}
189
190void* calloc(size_t n, size_t size) {
191#ifdef _WIN32

Callers 3

operator newFunction · 0.70
operator new[]Function · 0.70
custom_mallocFunction · 0.50

Calls 3

init_real_allocatorsFunction · 0.85
real_mallocFunction · 0.85
on_mallocMethod · 0.80

Tested by

no test coverage detected