Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: runtime/vm/metrics.h

Issue 1303033005: Add --print-metrics vm flag for printing metrics to console (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/metrics.h
diff --git a/runtime/vm/metrics.h b/runtime/vm/metrics.h
index ab588811600fd4690b739b3a836b193a61d32e28..03cead211bbb2cd7a0030a5fad3a2b73a653710e 100644
--- a/runtime/vm/metrics.h
+++ b/runtime/vm/metrics.h
@@ -35,6 +35,8 @@ class Metric {
static void InitOnce();
+ static void Cleanup();
+
// Initialize and register a metric for an isolate.
void Init(Isolate* isolate,
const char* name,
@@ -50,6 +52,12 @@ class Metric {
void PrintJSON(JSONStream* stream);
+ // Returns a zone allocated string.
+ static char* ValueToString(int64_t value, Unit unit);
+
+ // Returns a zone allocated string.
+ char* ToString();
+
int64_t value() const { return value_; }
void set_value(int64_t value) { value_ = value; }
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698