MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / recordFree

Method recordFree

src/mallocTracer.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void MallocTracer::recordFree(void* address) {
226 MallocEvent event;
227 event._start_time = TSC::ticks();
228 event._address = (uintptr_t)address;
229 event._size = 0;
230
231 Profiler::instance()->recordEventOnly(MALLOC_SAMPLE, &event);
232}
233
234Error MallocTracer::start(Arguments& args) {
235 _interval = args._nativemem > 0 ? args._nativemem : 0;

Callers

nothing calls this directly

Calls 1

recordEventOnlyMethod · 0.80

Tested by

no test coverage detected