Searched refs:current_buffer_index (Results 1 – 2 of 2) sorted by relevance
34 static int current_buffer_index; variable43 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()[all …]