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

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

Issue 1384003004: Add max post-gc heap usage metrics (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/heap.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 VM_METRICS_H_ 5 #ifndef VM_METRICS_H_
6 #define VM_METRICS_H_ 6 #define VM_METRICS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 class Isolate; 12 class Isolate;
13 class JSONStream; 13 class JSONStream;
14 14
15 // Metrics for each isolate. 15 // Metrics for each isolate.
16 #define ISOLATE_METRIC_LIST(V) \ 16 #define ISOLATE_METRIC_LIST(V) \
17 V(MetricHeapOldUsed, HeapOldUsed, "heap.old.used", kByte) \ 17 V(MetricHeapOldUsed, HeapOldUsed, "heap.old.used", kByte) \
18 V(MaxMetric, HeapOldUsedMax, "heap.old.used.max", kByte) \
18 V(MetricHeapOldCapacity, HeapOldCapacity, "heap.old.capacity", kByte) \ 19 V(MetricHeapOldCapacity, HeapOldCapacity, "heap.old.capacity", kByte) \
19 V(MaxMetric, HeapOldCapacityMax, "heap.old.capacity.max", kByte) \ 20 V(MaxMetric, HeapOldCapacityMax, "heap.old.capacity.max", kByte) \
20 V(MetricHeapOldExternal, HeapOldExternal, "heap.old.external", kByte) \ 21 V(MetricHeapOldExternal, HeapOldExternal, "heap.old.external", kByte) \
21 V(MetricHeapNewUsed, HeapNewUsed, "heap.new.used", kByte) \ 22 V(MetricHeapNewUsed, HeapNewUsed, "heap.new.used", kByte) \
23 V(MaxMetric, HeapNewUsedMax, "heap.new.used.max", kByte) \
22 V(MetricHeapNewCapacity, HeapNewCapacity, "heap.new.capacity", kByte) \ 24 V(MetricHeapNewCapacity, HeapNewCapacity, "heap.new.capacity", kByte) \
23 V(MaxMetric, HeapNewCapacityMax, "heap.new.capacity.max", kByte) \ 25 V(MaxMetric, HeapNewCapacityMax, "heap.new.capacity.max", kByte) \
24 V(MetricHeapNewExternal, HeapNewExternal, "heap.new.external", kByte) 26 V(MetricHeapNewExternal, HeapNewExternal, "heap.new.external", kByte) \
27 V(MetricHeapUsed, HeapGlobalUsed, "heap.global.used", kByte) \
28 V(MaxMetric, HeapGlobalUsedMax, "heap.global.used.max", kByte) \
25 29
26 #define VM_METRIC_LIST(V) \ 30 #define VM_METRIC_LIST(V) \
27 V(MetricIsolateCount, IsolateCount, "vm.isolate.count", kCounter) 31 V(MetricIsolateCount, IsolateCount, "vm.isolate.count", kCounter)
28 32
29 class Metric { 33 class Metric {
30 public: 34 public:
31 enum Unit { 35 enum Unit {
32 kCounter, 36 kCounter,
33 kByte, 37 kByte,
34 }; 38 };
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual int64_t Value() const; 163 virtual int64_t Value() const;
160 }; 164 };
161 165
162 166
163 class MetricIsolateCount : public Metric { 167 class MetricIsolateCount : public Metric {
164 protected: 168 protected:
165 virtual int64_t Value() const; 169 virtual int64_t Value() const;
166 }; 170 };
167 171
168 172
173 class MetricHeapUsed : public Metric {
174 protected:
175 virtual int64_t Value() const;
176 };
177
169 } // namespace dart 178 } // namespace dart
170 179
171 #endif // VM_METRICS_H_ 180 #endif // VM_METRICS_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698