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

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

Issue 2999933002: Revert "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 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) \
35 V(MetricPeakRSS, PeakRSS, "vm.memory.max", kByte) 34 V(MetricPeakRSS, PeakRSS, "vm.memory.max", kByte)
36 35
37 class Metric { 36 class Metric {
38 public: 37 public:
39 enum Unit { 38 enum Unit {
40 kCounter, 39 kCounter,
41 kByte, 40 kByte,
42 kMicrosecond, 41 kMicrosecond,
43 }; 42 };
44 43
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 class MetricHeapNewExternal : public Metric { 155 class MetricHeapNewExternal : public Metric {
157 protected: 156 protected:
158 virtual int64_t Value() const; 157 virtual int64_t Value() const;
159 }; 158 };
160 159
161 class MetricIsolateCount : public Metric { 160 class MetricIsolateCount : public Metric {
162 protected: 161 protected:
163 virtual int64_t Value() const; 162 virtual int64_t Value() const;
164 }; 163 };
165 164
166 class MetricCurrentRSS : public Metric {
167 protected:
168 virtual int64_t Value() const;
169 };
170
171 class MetricPeakRSS : public Metric { 165 class MetricPeakRSS : public Metric {
172 protected: 166 protected:
173 virtual int64_t Value() const; 167 virtual int64_t Value() const;
174 }; 168 };
175 169
176 class MetricHeapUsed : public Metric { 170 class MetricHeapUsed : public Metric {
177 protected: 171 protected:
178 virtual int64_t Value() const; 172 virtual int64_t Value() const;
179 }; 173 };
180 174
181 } // namespace dart 175 } // namespace dart
182 176
183 #endif // RUNTIME_VM_METRICS_H_ 177 #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