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

Method recordAllocationInNewTLAB

src/flightRecorder.cpp:1076–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074 }
1075
1076 void recordAllocationInNewTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) {
1077 int start = buf->skip(1);
1078 buf->put8(T_ALLOC_IN_NEW_TLAB);
1079 buf->putVar64(event->_start_time);
1080 buf->putVar32(tid);
1081 buf->putVar32(call_trace_id);
1082 buf->putVar32(event->_class_id);
1083 buf->putVar64(event->_instance_size);
1084 buf->putVar64(event->_total_size);
1085 buf->put8(start, buf->offset() - start);
1086 }
1087
1088 void recordAllocationOutsideTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) {
1089 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