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

Method recordMethodTrace

src/flightRecorder.cpp:1053–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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