MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / reset

Method reset

runtime/TimeTrace.cc:175–184  ·  view source on GitHub ↗

* Discard any existing trace records. */

Source from the content-addressed store, hash-verified

173 * Discard any existing trace records.
174 */
175void TimeTrace::Buffer::reset()
176{
177 for (uint32_t i = 0; i < BUFFER_SIZE; i++) {
178 if (events[i].format == NULL) {
179 break;
180 }
181 events[i].format = NULL;
182 }
183 nextIndex = 0;
184}
185
186/**
187 * Discards all records in all of the thread-local buffers. Intended

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected