| 223 | } |
| 224 | |
| 225 | void 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 | |
| 234 | Error MallocTracer::start(Arguments& args) { |
| 235 | _interval = args._nativemem > 0 ? args._nativemem : 0; |
nothing calls this directly
no test coverage detected