| 1202 | } |
| 1203 | |
| 1204 | void recordNativeLockSample(Buffer* buf, int tid, u32 call_trace_id, NativeLockEvent* event) { |
| 1205 | int start = buf->skip(1); |
| 1206 | buf->put8(T_NATIVE_LOCK); |
| 1207 | buf->putVar64(event->_start_time); |
| 1208 | buf->putVar64(event->_end_time - event->_start_time); |
| 1209 | buf->putVar32(tid); |
| 1210 | buf->putVar32(call_trace_id); |
| 1211 | buf->putVar64(event->_address); |
| 1212 | buf->put8(start, buf->offset() - start); |
| 1213 | } |
| 1214 | |
| 1215 | void recordWindow(Buffer* buf, int tid, ProfilingWindow* event) { |
| 1216 | int start = buf->skip(1); |