| 1074 | } |
| 1075 | |
| 1076 | void recordAllocationInNewTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) { |
| 1077 | int start = buf->skip(1); |
| 1078 | buf->put8(T_ALLOC_IN_NEW_TLAB); |
| 1079 | buf->putVar64(event->_start_time); |
| 1080 | buf->putVar32(tid); |
| 1081 | buf->putVar32(call_trace_id); |
| 1082 | buf->putVar32(event->_class_id); |
| 1083 | buf->putVar64(event->_instance_size); |
| 1084 | buf->putVar64(event->_total_size); |
| 1085 | buf->put8(start, buf->offset() - start); |
| 1086 | } |
| 1087 | |
| 1088 | void recordAllocationOutsideTLAB(Buffer* buf, int tid, u32 call_trace_id, AllocEvent* event) { |
| 1089 | int start = buf->skip(1); |