| 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/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ | 1048 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ |
| 1049 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ | 1049 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ |
| 1050 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) \ | 1050 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) \ |
| 1051 SC(turbo_escape_allocs_replaced, V8.TurboEscapeAllocsReplaced) \ | 1051 SC(turbo_escape_allocs_replaced, V8.TurboEscapeAllocsReplaced) \ |
| 1052 SC(crankshaft_escape_allocs_replaced, V8.CrankshaftEscapeAllocsReplaced) \ | 1052 SC(crankshaft_escape_allocs_replaced, V8.CrankshaftEscapeAllocsReplaced) \ |
| 1053 SC(turbo_escape_loads_replaced, V8.TurboEscapeLoadsReplaced) \ | 1053 SC(turbo_escape_loads_replaced, V8.TurboEscapeLoadsReplaced) \ |
| 1054 SC(crankshaft_escape_loads_replaced, V8.CrankshaftEscapeLoadsReplaced) \ | 1054 SC(crankshaft_escape_loads_replaced, V8.CrankshaftEscapeLoadsReplaced) \ |
| 1055 /* Total code size (including metadata) of baseline code or bytecode. */ \ | 1055 /* Total code size (including metadata) of baseline code or bytecode. */ \ |
| 1056 SC(total_baseline_code_size, V8.TotalBaselineCodeSize) \ | 1056 SC(total_baseline_code_size, V8.TotalBaselineCodeSize) \ |
| 1057 /* Total count of functions compiled using the baseline compiler. */ \ | 1057 /* Total count of functions compiled using the baseline compiler. */ \ |
| 1058 SC(total_baseline_compile_count, V8.TotalBaselineCompileCount) | 1058 SC(total_baseline_compile_count, V8.TotalBaselineCompileCount) \ |
| 1059 SC(wasm_generated_code_size, V8.WasmGeneratedCodeBytes) \ |
| 1060 SC(wasm_reloc_size, V8.WasmRelocBytes) |
| 1059 | 1061 |
| 1060 // This file contains all the v8 counters that are in use. | 1062 // This file contains all the v8 counters that are in use. |
| 1061 class Counters { | 1063 class Counters { |
| 1062 public: | 1064 public: |
| 1063 #define HR(name, caption, min, max, num_buckets) \ | 1065 #define HR(name, caption, min, max, num_buckets) \ |
| 1064 Histogram* name() { return &name##_; } | 1066 Histogram* name() { return &name##_; } |
| 1065 HISTOGRAM_RANGE_LIST(HR) | 1067 HISTOGRAM_RANGE_LIST(HR) |
| 1066 #undef HR | 1068 #undef HR |
| 1067 | 1069 |
| 1068 #define HT(name, caption, max, res) \ | 1070 #define HT(name, caption, max, res) \ |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 | 1237 |
| 1236 explicit Counters(Isolate* isolate); | 1238 explicit Counters(Isolate* isolate); |
| 1237 | 1239 |
| 1238 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1240 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
| 1239 }; | 1241 }; |
| 1240 | 1242 |
| 1241 } // namespace internal | 1243 } // namespace internal |
| 1242 } // namespace v8 | 1244 } // namespace v8 |
| 1243 | 1245 |
| 1244 #endif // V8_COUNTERS_H_ | 1246 #endif // V8_COUNTERS_H_ |
| OLD | NEW |