| 1062 | } |
| 1063 | |
| 1064 | void recordWallClockSample(Buffer* buf, int tid, u32 call_trace_id, WallClockEvent* event) { |
| 1065 | int start = buf->skip(1); |
| 1066 | buf->put8(T_WALL_CLOCK_SAMPLE); |
| 1067 | buf->putVar64(event->_start_time); |
| 1068 | buf->putVar32(tid); |
| 1069 | buf->putVar32(call_trace_id); |
| 1070 | buf->putVar32(event->_thread_state); |
| 1071 | buf->putVar32(event->_samples); |
| 1072 | buf->putVar64(event->_time_span); |
| 1073 | buf->put8(start, buf->offset() - start); |
| 1074 | } |
| 1075 | |
| 1076 | void recordAllocationInNewTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) { |
| 1077 | int start = buf->skip(1); |