Searched refs:event_buffer_ (Results 1 – 2 of 2) sorted by relevance
66 : enabled_(enabled), current_index_(0), event_buffer_(max_num_entries) {} in ProfileBuffer()78 int index = current_index_ % event_buffer_.size(); in BeginEvent()83 event_buffer_[index].tag = tag; in BeginEvent()84 event_buffer_[index].event_type = event_type; in BeginEvent()85 event_buffer_[index].event_metadata = event_metadata1; in BeginEvent()86 event_buffer_[index].extra_event_metadata = event_metadata2; in BeginEvent()87 event_buffer_[index].begin_timestamp_us = timestamp; in BeginEvent()88 event_buffer_[index].end_timestamp_us = 0; in BeginEvent()90 event_buffer_[index].begin_mem_usage = memory::GetMemoryUsage(); in BeginEvent()108 const uint32_t max_size = event_buffer_.size();[all …]
60 event_buffer_.emplace_back(); in BeginEvent()61 event_handle = event_buffer_.size(); in BeginEvent()76 event_buffer_.emplace_back(); in BeginEvent()77 event_handle = event_buffer_.size(); in BeginEvent()90 EXPECT_EQ(event_handle, event_buffer_.size()); in EndEvent()93 int NumRecordedEvents() { return event_buffer_.size(); } in NumRecordedEvents()96 std::vector<profiling::ProfileEvent> event_buffer_; member in tflite::delegates::__anon0bc3cf440111::DelegateProfiler