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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 1000000, MICROSECOND) \ | 979 1000000, MICROSECOND) \ |
980 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ | 980 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ |
981 MICROSECOND) \ | 981 MICROSECOND) \ |
982 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ | 982 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ |
983 MICROSECOND) \ | 983 MICROSECOND) \ |
984 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ | 984 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ |
985 MICROSECOND) \ | 985 MICROSECOND) \ |
986 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ | 986 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ |
987 MICROSECOND) \ | 987 MICROSECOND) \ |
988 HT(asm_wasm_translation_time, V8.AsmWasmTranslationMicroSeconds, 1000000, \ | 988 HT(asm_wasm_translation_time, V8.AsmWasmTranslationMicroSeconds, 1000000, \ |
989 MICROSECOND) | 989 MICROSECOND) \ |
| 990 HT(asm_wasm_lazy_compilation_time, V8.AsmWasmLazyCompilationMicroSeconds, \ |
| 991 1000000, MICROSECOND) |
990 | 992 |
991 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ | 993 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ |
992 AHT(compile_lazy, V8.CompileLazyMicroSeconds) | 994 AHT(compile_lazy, V8.CompileLazyMicroSeconds) |
993 | 995 |
994 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ | 996 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ |
995 /* Heap fragmentation. */ \ | 997 /* Heap fragmentation. */ \ |
996 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ | 998 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ |
997 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ | 999 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ |
998 HP(external_fragmentation_code_space, \ | 1000 HP(external_fragmentation_code_space, \ |
999 V8.MemoryExternalFragmentationCodeSpace) \ | 1001 V8.MemoryExternalFragmentationCodeSpace) \ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ | 1149 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ |
1148 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ | 1150 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ |
1149 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ | 1151 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ |
1150 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ | 1152 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ |
1151 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) \ | 1153 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) \ |
1152 /* Total code size (including metadata) of baseline code or bytecode. */ \ | 1154 /* Total code size (including metadata) of baseline code or bytecode. */ \ |
1153 SC(total_baseline_code_size, V8.TotalBaselineCodeSize) \ | 1155 SC(total_baseline_code_size, V8.TotalBaselineCodeSize) \ |
1154 /* Total count of functions compiled using the baseline compiler. */ \ | 1156 /* Total count of functions compiled using the baseline compiler. */ \ |
1155 SC(total_baseline_compile_count, V8.TotalBaselineCompileCount) \ | 1157 SC(total_baseline_compile_count, V8.TotalBaselineCompileCount) \ |
1156 SC(wasm_generated_code_size, V8.WasmGeneratedCodeBytes) \ | 1158 SC(wasm_generated_code_size, V8.WasmGeneratedCodeBytes) \ |
1157 SC(wasm_reloc_size, V8.WasmRelocBytes) | 1159 SC(wasm_reloc_size, V8.WasmRelocBytes) \ |
| 1160 SC(asm_wasm_lazily_compiled_functions, V8.AsmWasmLazilyCompiledFunctions) |
1158 | 1161 |
1159 // This file contains all the v8 counters that are in use. | 1162 // This file contains all the v8 counters that are in use. |
1160 class Counters { | 1163 class Counters { |
1161 public: | 1164 public: |
1162 #define HR(name, caption, min, max, num_buckets) \ | 1165 #define HR(name, caption, min, max, num_buckets) \ |
1163 Histogram* name() { return &name##_; } | 1166 Histogram* name() { return &name##_; } |
1164 HISTOGRAM_RANGE_LIST(HR) | 1167 HISTOGRAM_RANGE_LIST(HR) |
1165 #undef HR | 1168 #undef HR |
1166 | 1169 |
1167 #define HT(name, caption, max, res) \ | 1170 #define HT(name, caption, max, res) \ |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 | 1337 |
1335 explicit Counters(Isolate* isolate); | 1338 explicit Counters(Isolate* isolate); |
1336 | 1339 |
1337 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1340 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1338 }; | 1341 }; |
1339 | 1342 |
1340 } // namespace internal | 1343 } // namespace internal |
1341 } // namespace v8 | 1344 } // namespace v8 |
1342 | 1345 |
1343 #endif // V8_COUNTERS_H_ | 1346 #endif // V8_COUNTERS_H_ |
OLD | NEW |