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

Method recordLiveObject

src/flightRecorder.cpp:1165–1175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1163 }
1164
1165 void recordLiveObject(Buffer* buf, int tid, u32 call_trace_id, LiveObject* event) {
1166 int start = buf->skip(1);
1167 buf->put8(T_LIVE_OBJECT);
1168 buf->putVar64(event->_start_time);
1169 buf->putVar32(tid);
1170 buf->putVar32(call_trace_id);
1171 buf->putVar32(event->_class_id);
1172 buf->putVar64(event->_alloc_size);
1173 buf->putVar64(event->_alloc_time);
1174 buf->put8(start, buf->offset() - start);
1175 }
1176
1177 void recordMonitorBlocked(Buffer* buf, int tid, u32 call_trace_id, LockEvent* event) {
1178 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