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

Method recordMonitorBlocked

src/flightRecorder.cpp:1177–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175 }
1176
1177 void recordMonitorBlocked(Buffer* buf, int tid, u32 call_trace_id, LockEvent* event) {
1178 int start = buf->skip(1);
1179 buf->put8(T_MONITOR_ENTER);
1180 buf->putVar64(event->_start_time);
1181 buf->putVar64(event->_end_time - event->_start_time);
1182 buf->putVar32(tid);
1183 buf->putVar32(call_trace_id);
1184 buf->putVar32(event->_class_id);
1185 buf->put8(0);
1186 buf->putVar64(event->_address);
1187 buf->put8(start, buf->offset() - start);
1188 }
1189
1190 void recordThreadPark(Buffer* buf, int tid, u32 call_trace_id, LockEvent* event) {
1191 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