Lines Matching refs:current_buffer_index
34 static int current_buffer_index; variable
43 stopwatch_logs[current_buffer_index].end_timestamp - in RecordLog()
44 stopwatch_logs[current_buffer_index].start_timestamp) in RecordLog()
48 if (current_buffer_index >= LOG_BUFFER_LENGTH) { in RecordLog()
49 current_buffer_index = 0; in RecordLog()
51 stopwatch_logs[current_buffer_index] = std::move(log); in RecordLog()
52 current_buffer_index++; in RecordLog()
61 if (current_buffer_index >= LOG_BUFFER_LENGTH) { in DumpStopWatchLog()
62 current_buffer_index = 0; in DumpStopWatchLog()
64 if (stopwatch_logs[current_buffer_index].message.empty()) { in DumpStopWatchLog()
65 current_buffer_index++; in DumpStopWatchLog()
69 auto now = stopwatch_logs[current_buffer_index].timestamp; in DumpStopWatchLog()
78 stopwatch_logs[current_buffer_index].message.c_str(), in DumpStopWatchLog()
81 stopwatch_logs[current_buffer_index].end_timestamp - in DumpStopWatchLog()
82 stopwatch_logs[current_buffer_index].start_timestamp) in DumpStopWatchLog()
84 current_buffer_index++; in DumpStopWatchLog()