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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ | 877 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ |
878 MICROSECOND) \ | 878 MICROSECOND) \ |
879 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ | 879 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ |
880 MICROSECOND) \ | 880 MICROSECOND) \ |
881 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ | 881 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ |
882 MICROSECOND) | 882 MICROSECOND) |
883 | 883 |
884 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ | 884 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ |
885 AHT(compile_lazy, V8.CompileLazyMicroSeconds) | 885 AHT(compile_lazy, V8.CompileLazyMicroSeconds) |
886 | 886 |
887 | |
888 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ | 887 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ |
889 /* Heap fragmentation. */ \ | 888 /* Heap fragmentation. */ \ |
890 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ | 889 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ |
891 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ | 890 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ |
892 HP(external_fragmentation_code_space, \ | 891 HP(external_fragmentation_code_space, \ |
893 V8.MemoryExternalFragmentationCodeSpace) \ | 892 V8.MemoryExternalFragmentationCodeSpace) \ |
894 HP(external_fragmentation_map_space, V8.MemoryExternalFragmentationMapSpace) \ | 893 HP(external_fragmentation_map_space, V8.MemoryExternalFragmentationMapSpace) \ |
895 HP(external_fragmentation_lo_space, V8.MemoryExternalFragmentationLoSpace) \ | 894 HP(external_fragmentation_lo_space, V8.MemoryExternalFragmentationLoSpace) \ |
896 /* Percentages of heap committed to each space. */ \ | 895 /* Percentages of heap committed to each space. */ \ |
897 HP(heap_fraction_new_space, V8.MemoryHeapFractionNewSpace) \ | 896 HP(heap_fraction_new_space, V8.MemoryHeapFractionNewSpace) \ |
898 HP(heap_fraction_old_space, V8.MemoryHeapFractionOldSpace) \ | 897 HP(heap_fraction_old_space, V8.MemoryHeapFractionOldSpace) \ |
899 HP(heap_fraction_code_space, V8.MemoryHeapFractionCodeSpace) \ | 898 HP(heap_fraction_code_space, V8.MemoryHeapFractionCodeSpace) \ |
900 HP(heap_fraction_map_space, V8.MemoryHeapFractionMapSpace) \ | 899 HP(heap_fraction_map_space, V8.MemoryHeapFractionMapSpace) \ |
901 HP(heap_fraction_lo_space, V8.MemoryHeapFractionLoSpace) \ | 900 HP(heap_fraction_lo_space, V8.MemoryHeapFractionLoSpace) |
902 /* Percentage of crankshafted codegen. */ \ | |
903 HP(codegen_fraction_crankshaft, V8.CodegenFractionCrankshaft) | |
904 | |
905 | 901 |
906 #define HISTOGRAM_LEGACY_MEMORY_LIST(HM) \ | 902 #define HISTOGRAM_LEGACY_MEMORY_LIST(HM) \ |
907 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ | 903 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ |
908 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ | 904 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ |
909 HM(heap_sample_map_space_committed, V8.MemoryHeapSampleMapSpaceCommitted) \ | 905 HM(heap_sample_map_space_committed, V8.MemoryHeapSampleMapSpaceCommitted) \ |
910 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ | 906 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ |
911 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) | 907 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) |
912 | 908 |
913 #define HISTOGRAM_MEMORY_LIST(HM) \ | 909 #define HISTOGRAM_MEMORY_LIST(HM) \ |
914 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ | 910 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 | 1233 |
1238 explicit Counters(Isolate* isolate); | 1234 explicit Counters(Isolate* isolate); |
1239 | 1235 |
1240 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1236 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1241 }; | 1237 }; |
1242 | 1238 |
1243 } // namespace internal | 1239 } // namespace internal |
1244 } // namespace v8 | 1240 } // namespace v8 |
1245 | 1241 |
1246 #endif // V8_COUNTERS_H_ | 1242 #endif // V8_COUNTERS_H_ |
OLD | NEW |