| 1051 | } |
| 1052 | |
| 1053 | void recordMethodTrace(Buffer* buf, int tid, u32 call_trace_id, MethodTraceEvent* event) { |
| 1054 | int start = buf->skip(1); |
| 1055 | buf->put8(T_METHOD_TRACE); |
| 1056 | buf->putVar64(event->_start_time); |
| 1057 | buf->putVar64(event->_duration); |
| 1058 | buf->putVar32(tid); |
| 1059 | buf->putVar32(call_trace_id); |
| 1060 | buf->putVar32(0); // TODO: method |
| 1061 | buf->put8(start, buf->offset() - start); |
| 1062 | } |
| 1063 | |
| 1064 | void recordWallClockSample(Buffer* buf, int tid, u32 call_trace_id, WallClockEvent* event) { |
| 1065 | int start = buf->skip(1); |