| 1041 | } |
| 1042 | |
| 1043 | void recordExecutionSample(Buffer* buf, int tid, u32 call_trace_id, ExecutionEvent* event) { |
| 1044 | int start = buf->skip(1); |
| 1045 | buf->put8(T_EXECUTION_SAMPLE); |
| 1046 | buf->putVar64(event->_start_time); |
| 1047 | buf->putVar32(tid); |
| 1048 | buf->putVar32(call_trace_id); |
| 1049 | buf->putVar32(event->_thread_state); |
| 1050 | buf->put8(start, buf->offset() - start); |
| 1051 | } |
| 1052 | |
| 1053 | void recordMethodTrace(Buffer* buf, int tid, u32 call_trace_id, MethodTraceEvent* event) { |
| 1054 | int start = buf->skip(1); |