19 "Print metrics when isolates (and the VM) are shutdown.");
21Metric* Metric::vm_list_head_ =
nullptr;
28 const char* description,
41 const char* description,
52 const char* description,
82 if (isolate_ ==
nullptr && isolate_group_ ==
nullptr) {
88 double value_as_double =
static_cast<double>(
Value());
102 const char* scaled_suffix =
"B";
103 double scaled_value =
static_cast<double>(
value);
105 scaled_suffix =
"GB";
108 scaled_suffix =
"MB";
111 scaled_suffix =
"kB";
115 scaled_suffix,
value);
118 const char* scaled_suffix =
"us";
119 double scaled_value =
static_cast<double>(
value);
124 scaled_suffix =
"ms";
128 scaled_suffix,
value);
138 ASSERT(thread !=
nullptr);
202 if (new_value >
value()) {
212 if (new_value <
value()) {
intptr_t ExternalInWords(Space space) const
intptr_t UsedInWords(Space space) const
intptr_t CapacityInWords(Space space) const
static IsolateGroup * Current()
static intptr_t IsolateListLength()
void AddProperty(const char *name, bool b) const
void AddFixedServiceId(const char *format,...) const PRINTF_ATTRIBUTE(2
void SetValue(int64_t new_value)
virtual int64_t Value() const
virtual int64_t Value() const
virtual int64_t Value() const
virtual int64_t Value() const
virtual int64_t Value() const
virtual int64_t Value() const
virtual int64_t Value() const
virtual int64_t Value() const
void PrintJSON(JSONStream *stream)
static char * ValueToString(int64_t value, Unit unit)
IsolateGroup * isolate_group() const
void set_value(int64_t value)
void InitInstance(Isolate *isolate, const char *name, const char *description, Unit unit)
const char * description() const
virtual int64_t Value() const
Isolate * isolate() const
const char * name() const
void SetValue(int64_t new_value)
static int64_t CurrentRSS()
static Thread * Current()
char * PrintToString(const char *format,...) PRINTF_ATTRIBUTE(2
constexpr int64_t kMaxInt64
constexpr int64_t kMinInt64
constexpr intptr_t kMicrosecondsPerMillisecond
constexpr intptr_t kMicrosecondsPerSecond
DEFINE_FLAG(bool, print_cluster_information, false, "Print information about clusters written to snapshot")
static const char * UnitString(intptr_t unit)
constexpr intptr_t kWordSize