| 1086 | } |
| 1087 | |
| 1088 | void recordAllocationOutsideTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) { |
| 1089 | int start = buf->skip(1); |
| 1090 | buf->put8(T_ALLOC_OUTSIDE_TLAB); |
| 1091 | buf->putVar64(event->_start_time); |
| 1092 | buf->putVar32(tid); |
| 1093 | buf->putVar32(call_trace_id); |
| 1094 | buf->putVar32(event->_class_id); |
| 1095 | buf->putVar64(event->_total_size); |
| 1096 | buf->put8(start, buf->offset() - start); |
| 1097 | } |
| 1098 | |
| 1099 | void recordMallocSample(Buffer* buf, int tid, u32 call_trace_id, MallocEvent* event) { |
| 1100 | int start = buf->skip(1); |