Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::EventCounterRecorder Class Reference
Inheritance diagram for dart::EventCounterRecorder:

Public Member Functions

 EventCounterRecorder ()
 
void OnEvent (TimelineEvent *event)
 
intptr_t CountFor (TimelineEvent::EventType type)
 

Detailed Description

Definition at line 273 of file timeline_test.cc.

Constructor & Destructor Documentation

◆ EventCounterRecorder()

dart::EventCounterRecorder::EventCounterRecorder ( )
inline

Definition at line 275 of file timeline_test.cc.

275 {
276 for (intptr_t i = 0; i < TimelineEvent::kNumEventTypes; i++) {
277 counts_[i] = 0;
278 }
279 }

Member Function Documentation

◆ CountFor()

intptr_t dart::EventCounterRecorder::CountFor ( TimelineEvent::EventType  type)
inline

Definition at line 283 of file timeline_test.cc.

283{ return counts_[type]; }
GLenum type

◆ OnEvent()

void dart::EventCounterRecorder::OnEvent ( TimelineEvent *  event)
inline

Definition at line 281 of file timeline_test.cc.

281{ counts_[event->event_type()]++; }

The documentation for this class was generated from the following file: