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

Method reset

tests/profile/json_memory_profile.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 fl::unsorted_map_fixed<const void*, u32, 64000> allocations;
50
51 void reset() {
52 current_bytes.store(0);
53 peak_bytes.store(0);
54 total_allocated.store(0);
55 alloc_count.store(0);
56 free_count.store(0);
57 allocations.clear();
58 }
59
60 void on_malloc(void* ptr, size_t size) {
61 if (!ptr) return;

Callers 15

profile_json_memoryFunction · 0.45
test_phase1_validationFunction · 0.45
SpiPeripheralFixtureMethod · 0.45
~SpiPeripheralFixtureMethod · 0.45
FL_TEST_FILEFunction · 0.45
resetMockStateFunction · 0.45
FL_TEST_FILEFunction · 0.45
resetMockStateFunction · 0.45
resetMockStateFunction · 0.45
resetI2sLcdCamMockStateFunction · 0.45
FL_TEST_FILEFunction · 0.45
resetMockFullFunction · 0.45

Calls 2

storeMethod · 0.45
clearMethod · 0.45

Tested by 1

test_phase1_validationFunction · 0.36