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