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

Method recordAllocationOutsideTLAB

src/flightRecorder.cpp:1088–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086 }
1087
1088 void recordAllocationOutsideTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) {
1089 int start = buf->skip(1);
1090 buf->put8(T_ALLOC_OUTSIDE_TLAB);
1091 buf->putVar64(event->_start_time);
1092 buf->putVar32(tid);
1093 buf->putVar32(call_trace_id);
1094 buf->putVar32(event->_class_id);
1095 buf->putVar64(event->_total_size);
1096 buf->put8(start, buf->offset() - start);
1097 }
1098
1099 void recordMallocSample(Buffer* buf, int tid, u32 call_trace_id, MallocEvent* event) {
1100 int start = buf->skip(1);

Callers 1

recordEventMethod · 0.80

Calls 5

skipMethod · 0.80
putVar64Method · 0.80
putVar32Method · 0.80
put8Method · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected