Flutter Engine
flutter::Counter Class Reference

#include <instrumentation.h>

Public Member Functions

 Counter ()
 
size_t count () const
 
void Reset (size_t count=0)
 
void Increment (size_t count=1)
 

Detailed Description

Definition at line 60 of file instrumentation.h.

Constructor & Destructor Documentation

◆ Counter()

flutter::Counter::Counter ( )
inline

Definition at line 62 of file instrumentation.h.

62 : count_(0) {}

Member Function Documentation

◆ count()

size_t flutter::Counter::count ( ) const
inline

Definition at line 64 of file instrumentation.h.

64 { return count_; }

◆ Increment()

void flutter::Counter::Increment ( size_t  count = 1)
inline

Definition at line 68 of file instrumentation.h.

References FML_DISALLOW_COPY_AND_ASSIGN.

Referenced by flutter::CompositorContext::CompositorContext().

68 { count_ += count; }
size_t count() const

◆ Reset()

void flutter::Counter::Reset ( size_t  count = 0)
inline

Definition at line 66 of file instrumentation.h.

66 { count_ = count; }
size_t count() const

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