Searched refs:event_buffer_ (Results 1 – 1 of 1) sorted by relevance
69 : enabled_(enabled), current_index_(0), event_buffer_(max_num_entries) {} in ProfileBuffer()81 int index = current_index_ % event_buffer_.size(); in BeginEvent()85 event_buffer_[index].tag = tag; in BeginEvent()86 event_buffer_[index].event_type = event_type; in BeginEvent()87 event_buffer_[index].event_metadata = event_metadata; in BeginEvent()88 event_buffer_[index].begin_timestamp_us = timestamp; in BeginEvent()89 event_buffer_[index].end_timestamp_us = 0; in BeginEvent()105 const uint32_t max_size = event_buffer_.size(); in EndEvent()113 event_buffer_[event_index].end_timestamp_us = time::NowMicros(); in EndEvent()118 return (current_index_ >= event_buffer_.size()) ? event_buffer_.size() in Size()[all …]