Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::MinMetric Class Reference

#include <metrics.h>

Inheritance diagram for dart::MinMetric:
dart::Metric

Public Member Functions

 MinMetric ()
 
void SetValue (int64_t new_value)
 
- Public Member Functions inherited from dart::Metric
 Metric ()
 
void InitInstance (Isolate *isolate, const char *name, const char *description, Unit unit)
 
void InitInstance (IsolateGroup *isolate_group, const char *name, const char *description, Unit unit)
 
void InitInstance (const char *name, const char *description, Unit unit)
 
virtual ~Metric ()
 
void PrintJSON (JSONStream *stream)
 
char * ToString ()
 
int64_t value () const
 
void set_value (int64_t value)
 
void increment ()
 
const char * name () const
 
const char * description () const
 
Unit unit () const
 
Isolateisolate () const
 
IsolateGroupisolate_group () const
 
virtual int64_t Value () const
 

Additional Inherited Members

- Public Types inherited from dart::Metric
enum  Unit { kCounter , kByte , kMicrosecond }
 
- Static Public Member Functions inherited from dart::Metric
static void Init ()
 
static void Cleanup ()
 
static char * ValueToString (int64_t value, Unit unit)
 
static Metricvm_head ()
 

Detailed Description

Definition at line 139 of file metrics.h.

Constructor & Destructor Documentation

◆ MinMetric()

dart::MinMetric::MinMetric ( )

Definition at line 207 of file metrics.cc.

207 : Metric() {
209}
void set_value(int64_t value)
Definition: metrics.h:96
constexpr int64_t kMaxInt64
Definition: globals.h:486

Member Function Documentation

◆ SetValue()

void dart::MinMetric::SetValue ( int64_t  new_value)

Definition at line 211 of file metrics.cc.

211 {
212 if (new_value < value()) {
213 set_value(new_value);
214 }
215}
int64_t value() const
Definition: metrics.h:95

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