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

Method recordThreadPark

src/flightRecorder.cpp:1190–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188 }
1189
1190 void recordThreadPark(Buffer* buf, int tid, u32 call_trace_id, LockEvent* event) {
1191 int start = buf->skip(1);
1192 buf->put8(T_THREAD_PARK);
1193 buf->putVar64(event->_start_time);
1194 buf->putVar64(event->_end_time - event->_start_time);
1195 buf->putVar32(tid);
1196 buf->putVar32(call_trace_id);
1197 buf->putVar32(event->_class_id);
1198 buf->putVar64(event->_timeout);
1199 buf->putVar64(MIN_JLONG);
1200 buf->putVar64(event->_address);
1201 buf->put8(start, buf->offset() - start);
1202 }
1203
1204 void recordNativeLockSample(Buffer* buf, int tid, u32 call_trace_id, NativeLockEvent* event) {
1205 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