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

Side by Side Diff: runtime/vm/metrics.h

Issue 2996803002: Add current rss and embedder name to Observatory (Closed)
Patch Set: Rebase and Merge 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_METRICS_H_ 5 #ifndef RUNTIME_VM_METRICS_H_
6 #define RUNTIME_VM_METRICS_H_ 6 #define RUNTIME_VM_METRICS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 13 matching lines...) Expand all
24 V(MetricHeapNewCapacity, HeapNewCapacity, "heap.new.capacity", kByte) \ 24 V(MetricHeapNewCapacity, HeapNewCapacity, "heap.new.capacity", kByte) \
25 V(MaxMetric, HeapNewCapacityMax, "heap.new.capacity.max", kByte) \ 25 V(MaxMetric, HeapNewCapacityMax, "heap.new.capacity.max", kByte) \
26 V(MetricHeapNewExternal, HeapNewExternal, "heap.new.external", kByte) \ 26 V(MetricHeapNewExternal, HeapNewExternal, "heap.new.external", kByte) \
27 V(MetricHeapUsed, HeapGlobalUsed, "heap.global.used", kByte) \ 27 V(MetricHeapUsed, HeapGlobalUsed, "heap.global.used", kByte) \
28 V(MaxMetric, HeapGlobalUsedMax, "heap.global.used.max", kByte) \ 28 V(MaxMetric, HeapGlobalUsedMax, "heap.global.used.max", kByte) \
29 V(Metric, RunnableLatency, "isolate.runnable.latency", kMicrosecond) \ 29 V(Metric, RunnableLatency, "isolate.runnable.latency", kMicrosecond) \
30 V(Metric, RunnableHeapSize, "isolate.runnable.heap", kByte) 30 V(Metric, RunnableHeapSize, "isolate.runnable.heap", kByte)
31 31
32 #define VM_METRIC_LIST(V) \ 32 #define VM_METRIC_LIST(V) \
33 V(MetricIsolateCount, IsolateCount, "vm.isolate.count", kCounter) \ 33 V(MetricIsolateCount, IsolateCount, "vm.isolate.count", kCounter) \
34 V(MetricCurrentRSS, CurrentRSS, "vm.memory.current", kByte) \
34 V(MetricPeakRSS, PeakRSS, "vm.memory.max", kByte) 35 V(MetricPeakRSS, PeakRSS, "vm.memory.max", kByte)
35 36
36 class Metric { 37 class Metric {
37 public: 38 public:
38 enum Unit { 39 enum Unit {
39 kCounter, 40 kCounter,
40 kByte, 41 kByte,
41 kMicrosecond, 42 kMicrosecond,
42 }; 43 };
43 44
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 class MetricHeapNewExternal : public Metric { 156 class MetricHeapNewExternal : public Metric {
156 protected: 157 protected:
157 virtual int64_t Value() const; 158 virtual int64_t Value() const;
158 }; 159 };
159 160
160 class MetricIsolateCount : public Metric { 161 class MetricIsolateCount : public Metric {
161 protected: 162 protected:
162 virtual int64_t Value() const; 163 virtual int64_t Value() const;
163 }; 164 };
164 165
166 class MetricCurrentRSS : public Metric {
167 protected:
168 virtual int64_t Value() const;
169 };
170
165 class MetricPeakRSS : public Metric { 171 class MetricPeakRSS : public Metric {
166 protected: 172 protected:
167 virtual int64_t Value() const; 173 virtual int64_t Value() const;
168 }; 174 };
169 175
170 class MetricHeapUsed : public Metric { 176 class MetricHeapUsed : public Metric {
171 protected: 177 protected:
172 virtual int64_t Value() const; 178 virtual int64_t Value() const;
173 }; 179 };
174 180
175 } // namespace dart 181 } // namespace dart
176 182
177 #endif // RUNTIME_VM_METRICS_H_ 183 #endif // RUNTIME_VM_METRICS_H_
OLDNEW
« 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