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

Method reset

src/wallClock.cpp:67–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void reset() {
68 memset(_ringbuf, 0, sizeof(_ringbuf));
69 _read_ptr = 0;
70 storeRelease(_write_ptr, 0);
71 }
72
73 void add(u64 trace) {
74 ThreadCpuTime& t = _ringbuf[atomicInc(_write_ptr) & (RINGBUF_SIZE - 1)];

Callers 1

timerLoopMethod · 0.45

Calls 1

storeReleaseFunction · 0.85

Tested by

no test coverage detected