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

Unified Diff: runtime/vm/metrics.h

Issue 2994223002: Restore "Add current rss and embedder name to Observatory" (Closed)
Patch Set: Created 3 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/dart_api_impl.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 87467ce5ee5f0192e80653dcdcb4bf334bc3ff0d..530cc4dd7d05515c8c07cf9709343d74fd47b163 100644
--- a/runtime/vm/metrics.h
+++ b/runtime/vm/metrics.h
@@ -31,6 +31,7 @@ class JSONStream;
#define VM_METRIC_LIST(V) \
V(MetricIsolateCount, IsolateCount, "vm.isolate.count", kCounter) \
+ V(MetricCurrentRSS, CurrentRSS, "vm.memory.current", kByte) \
V(MetricPeakRSS, PeakRSS, "vm.memory.max", kByte)
class Metric {
@@ -162,6 +163,11 @@ class MetricIsolateCount : public Metric {
virtual int64_t Value() const;
};
+class MetricCurrentRSS : public Metric {
+ protected:
+ virtual int64_t Value() const;
+};
+
class MetricPeakRSS : public Metric {
protected:
virtual int64_t Value() const;
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698