| 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); |