MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / recordWallClockSample

Method recordWallClockSample

src/flightRecorder.cpp:1064–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

recordEventMethod · 0.80

Calls 5

skipMethod · 0.80
putVar64Method · 0.80
putVar32Method · 0.80
put8Method · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected