| 1163 | } |
| 1164 | |
| 1165 | void recordLiveObject(Buffer* buf, int tid, u32 call_trace_id, LiveObject* event) { |
| 1166 | int start = buf->skip(1); |
| 1167 | buf->put8(T_LIVE_OBJECT); |
| 1168 | buf->putVar64(event->_start_time); |
| 1169 | buf->putVar32(tid); |
| 1170 | buf->putVar32(call_trace_id); |
| 1171 | buf->putVar32(event->_class_id); |
| 1172 | buf->putVar64(event->_alloc_size); |
| 1173 | buf->putVar64(event->_alloc_time); |
| 1174 | buf->put8(start, buf->offset() - start); |
| 1175 | } |
| 1176 | |
| 1177 | void recordMonitorBlocked(Buffer* buf, int tid, u32 call_trace_id, LockEvent* event) { |
| 1178 | int start = buf->skip(1); |