OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/platform/platform.h" | 7 #include "src/base/platform/platform.h" |
8 #include "src/counters.h" | 8 #include "src/counters.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/log-inl.h" | 10 #include "src/log-inl.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #define HR(name, caption, min, max, num_buckets) \ | 59 #define HR(name, caption, min, max, num_buckets) \ |
60 name##_ = Histogram(#caption, min, max, num_buckets, isolate); | 60 name##_ = Histogram(#caption, min, max, num_buckets, isolate); |
61 HISTOGRAM_RANGE_LIST(HR) | 61 HISTOGRAM_RANGE_LIST(HR) |
62 #undef HR | 62 #undef HR |
63 | 63 |
64 #define HT(name, caption) \ | 64 #define HT(name, caption) \ |
65 name##_ = HistogramTimer(#caption, 0, 10000, 50, isolate); | 65 name##_ = HistogramTimer(#caption, 0, 10000, 50, isolate); |
66 HISTOGRAM_TIMER_LIST(HT) | 66 HISTOGRAM_TIMER_LIST(HT) |
67 #undef HT | 67 #undef HT |
68 | 68 |
| 69 #define AHT(name, caption) \ |
| 70 name##_ = AggregatableHistogramTimer(#caption, 0, 10000, 50, isolate); |
| 71 AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) |
| 72 #undef AHT |
| 73 |
69 #define HP(name, caption) \ | 74 #define HP(name, caption) \ |
70 name##_ = Histogram(#caption, 0, 101, 100, isolate); | 75 name##_ = Histogram(#caption, 0, 101, 100, isolate); |
71 HISTOGRAM_PERCENTAGE_LIST(HP) | 76 HISTOGRAM_PERCENTAGE_LIST(HP) |
72 #undef HP | 77 #undef HP |
73 | 78 |
74 #define HM(name, caption) \ | 79 #define HM(name, caption) \ |
75 name##_ = Histogram(#caption, 1000, 500000, 50, isolate); | 80 name##_ = Histogram(#caption, 1000, 500000, 50, isolate); |
76 HISTOGRAM_MEMORY_LIST(HM) | 81 HISTOGRAM_MEMORY_LIST(HM) |
77 #undef HM | 82 #undef HM |
78 | 83 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 154 |
150 void Counters::ResetHistograms() { | 155 void Counters::ResetHistograms() { |
151 #define HR(name, caption, min, max, num_buckets) name##_.Reset(); | 156 #define HR(name, caption, min, max, num_buckets) name##_.Reset(); |
152 HISTOGRAM_RANGE_LIST(HR) | 157 HISTOGRAM_RANGE_LIST(HR) |
153 #undef HR | 158 #undef HR |
154 | 159 |
155 #define HT(name, caption) name##_.Reset(); | 160 #define HT(name, caption) name##_.Reset(); |
156 HISTOGRAM_TIMER_LIST(HT) | 161 HISTOGRAM_TIMER_LIST(HT) |
157 #undef HT | 162 #undef HT |
158 | 163 |
| 164 #define AHT(name, caption) name##_.Reset(); |
| 165 AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) |
| 166 #undef AHT |
| 167 |
159 #define HP(name, caption) name##_.Reset(); | 168 #define HP(name, caption) name##_.Reset(); |
160 HISTOGRAM_PERCENTAGE_LIST(HP) | 169 HISTOGRAM_PERCENTAGE_LIST(HP) |
161 #undef HP | 170 #undef HP |
162 | 171 |
163 #define HM(name, caption) name##_.Reset(); | 172 #define HM(name, caption) name##_.Reset(); |
164 HISTOGRAM_MEMORY_LIST(HM) | 173 HISTOGRAM_MEMORY_LIST(HM) |
165 #undef HM | 174 #undef HM |
166 } | 175 } |
167 | 176 |
168 } } // namespace v8::internal | 177 } } // namespace v8::internal |
OLD | NEW |