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

Method recordNativeLockSample

src/flightRecorder.cpp:1204–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202 }
1203
1204 void recordNativeLockSample(Buffer* buf, int tid, u32 call_trace_id, NativeLockEvent* event) {
1205 int start = buf->skip(1);
1206 buf->put8(T_NATIVE_LOCK);
1207 buf->putVar64(event->_start_time);
1208 buf->putVar64(event->_end_time - event->_start_time);
1209 buf->putVar32(tid);
1210 buf->putVar32(call_trace_id);
1211 buf->putVar64(event->_address);
1212 buf->put8(start, buf->offset() - start);
1213 }
1214
1215 void recordWindow(Buffer* buf, int tid, ProfilingWindow* event) {
1216 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