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 #ifndef V8_COUNTERS_H_ | 5 #ifndef V8_COUNTERS_H_ |
6 #define V8_COUNTERS_H_ | 6 #define V8_COUNTERS_H_ |
7 | 7 |
8 #include "include/v8.h" | 8 #include "include/v8.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/base/atomic-utils.h" | 10 #include "src/base/atomic-utils.h" |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 #undef COUNTER_ID | 1266 #undef COUNTER_ID |
1267 #define COUNTER_ID(name) kCountOfCODE_AGE__##name, \ | 1267 #define COUNTER_ID(name) kCountOfCODE_AGE__##name, \ |
1268 kSizeOfCODE_AGE__##name, | 1268 kSizeOfCODE_AGE__##name, |
1269 CODE_AGE_LIST_COMPLETE(COUNTER_ID) | 1269 CODE_AGE_LIST_COMPLETE(COUNTER_ID) |
1270 #undef COUNTER_ID | 1270 #undef COUNTER_ID |
1271 stats_counter_count | 1271 stats_counter_count |
1272 }; | 1272 }; |
1273 | 1273 |
1274 void ResetCounters(); | 1274 void ResetCounters(); |
1275 void ResetHistograms(); | 1275 void ResetHistograms(); |
| 1276 void InitializeHistograms(); |
| 1277 |
1276 RuntimeCallStats* runtime_call_stats() { return &runtime_call_stats_; } | 1278 RuntimeCallStats* runtime_call_stats() { return &runtime_call_stats_; } |
1277 | 1279 |
1278 private: | 1280 private: |
1279 #define HR(name, caption, min, max, num_buckets) Histogram name##_; | 1281 #define HR(name, caption, min, max, num_buckets) Histogram name##_; |
1280 HISTOGRAM_RANGE_LIST(HR) | 1282 HISTOGRAM_RANGE_LIST(HR) |
1281 #undef HR | 1283 #undef HR |
1282 | 1284 |
1283 #define HT(name, caption, max, res) HistogramTimer name##_; | 1285 #define HT(name, caption, max, res) HistogramTimer name##_; |
1284 HISTOGRAM_TIMER_LIST(HT) | 1286 HISTOGRAM_TIMER_LIST(HT) |
1285 #undef HT | 1287 #undef HT |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 | 1343 |
1342 explicit Counters(Isolate* isolate); | 1344 explicit Counters(Isolate* isolate); |
1343 | 1345 |
1344 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1346 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1345 }; | 1347 }; |
1346 | 1348 |
1347 } // namespace internal | 1349 } // namespace internal |
1348 } // namespace v8 | 1350 } // namespace v8 |
1349 | 1351 |
1350 #endif // V8_COUNTERS_H_ | 1352 #endif // V8_COUNTERS_H_ |
OLD | NEW |