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

Method recordExecutionSample

src/flightRecorder.cpp:1043–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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