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

Public Member Functions

 ProfileSampleBufferTestHelper (Dart_Port port)
 
void VisitSample (Sample *sample)
 
void Reset ()
 
intptr_t sum () const
 
- Public Member Functions inherited from dart::SampleVisitor
 SampleVisitor (Dart_Port port)
 
virtual ~SampleVisitor ()
 
virtual void VisitSample (Sample *sample)=0
 
virtual void Reset ()
 
intptr_t visited () const
 
void IncrementVisited ()
 
Dart_Port port () const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 65 of file profiler_test.cc.

Constructor & Destructor Documentation

◆ ProfileSampleBufferTestHelper()

dart::ProfileSampleBufferTestHelper::ProfileSampleBufferTestHelper ( Dart_Port  port)
inlineexplicit

Definition at line 67 of file profiler_test.cc.

SampleVisitor(Dart_Port port)
Definition: profiler.h:125
Dart_Port port() const
Definition: profiler.h:136

Member Function Documentation

◆ Reset()

void dart::ProfileSampleBufferTestHelper::Reset ( )
inlinevirtual

Reimplemented from dart::SampleVisitor.

Definition at line 72 of file profiler_test.cc.

72 {
73 sum_ = 0;
75 }
virtual void Reset()
Definition: profiler.h:130

◆ sum()

intptr_t dart::ProfileSampleBufferTestHelper::sum ( ) const
inline

Definition at line 77 of file profiler_test.cc.

77{ return sum_; }

◆ VisitSample()

void dart::ProfileSampleBufferTestHelper::VisitSample ( Sample sample)
inlinevirtual

Implements dart::SampleVisitor.

Definition at line 70 of file profiler_test.cc.

70{ sum_ += sample->At(0); }

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