Flutter Engine
The Flutter Engine
|
#include <metrics.h>
Public Types | |
enum | Unit { kCounter , kByte , kMicrosecond } |
Public Member Functions | |
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 |
Isolate * | isolate () const |
IsolateGroup * | isolate_group () const |
virtual int64_t | Value () const |
Static Public Member Functions | |
static void | Init () |
static void | Cleanup () |
static char * | ValueToString (int64_t value, Unit unit) |
static Metric * | vm_head () |
enum dart::Metric::Unit |
Enumerator | |
---|---|
kCounter | |
kByte | |
kMicrosecond |
dart::Metric::Metric | ( | ) |
Definition at line 23 of file metrics.cc.
|
virtual |
Definition at line 24 of file metrics.cc.
|
static |
|
inline |
|
static |
void dart::Metric::InitInstance | ( | const char * | name, |
const char * | description, | ||
Unit | unit | ||
) |
Definition at line 51 of file metrics.cc.
void dart::Metric::InitInstance | ( | Isolate * | isolate, |
const char * | name, | ||
const char * | description, | ||
Unit | unit | ||
) |
Definition at line 39 of file metrics.cc.
void dart::Metric::InitInstance | ( | IsolateGroup * | isolate_group, |
const char * | name, | ||
const char * | description, | ||
Unit | unit | ||
) |
Definition at line 26 of file metrics.cc.
|
inline |
|
inline |
|
inline |
void dart::Metric::PrintJSON | ( | JSONStream * | stream | ) |
Definition at line 76 of file metrics.cc.
|
inline |
char * dart::Metric::ToString | ( | ) |
Definition at line 136 of file metrics.cc.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in dart::MetricHeapOldUsed, dart::MetricHeapOldCapacity, dart::MetricHeapOldExternal, dart::MetricHeapNewUsed, dart::MetricHeapNewCapacity, dart::MetricHeapNewExternal, dart::MetricIsolateCount, dart::MetricCurrentRSS, dart::MetricPeakRSS, dart::MetricHeapUsed, and dart::MyMetric.
Definition at line 114 of file metrics.h.
|
static |
Definition at line 93 of file metrics.cc.
|
inlinestatic |