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

Method recordWallClock

src/wallClock.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void WallClock::recordWallClock(const ThreadSleepState& tss, ThreadState state, int tid) {
148 WallClockEvent event;
149 event._start_time = tss.start_time;
150 event._time_span = tss.last_time - tss.start_time;
151 event._thread_state = state;
152 event._samples = tss.counter;
153 Profiler::instance()->recordExternalSamples(tss.counter, tss.counter * _interval, tid, tss.call_trace_id, WALL_CLOCK_SAMPLE, &event);
154}
155
156Error WallClock::start(Arguments& args) {
157 if (args._wall >= 0 || strcmp(args._event, EVENT_WALL) == 0) {

Callers

nothing calls this directly

Calls 1

recordExternalSamplesMethod · 0.80

Tested by

no test coverage detected