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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 HP(heap_fraction_map_space, V8.MemoryHeapFractionMapSpace) \ | 1003 HP(heap_fraction_map_space, V8.MemoryHeapFractionMapSpace) \ |
1004 HP(heap_fraction_lo_space, V8.MemoryHeapFractionLoSpace) | 1004 HP(heap_fraction_lo_space, V8.MemoryHeapFractionLoSpace) |
1005 | 1005 |
1006 #define HISTOGRAM_LEGACY_MEMORY_LIST(HM) \ | 1006 #define HISTOGRAM_LEGACY_MEMORY_LIST(HM) \ |
1007 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ | 1007 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ |
1008 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ | 1008 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ |
1009 HM(heap_sample_map_space_committed, V8.MemoryHeapSampleMapSpaceCommitted) \ | 1009 HM(heap_sample_map_space_committed, V8.MemoryHeapSampleMapSpaceCommitted) \ |
1010 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ | 1010 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ |
1011 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) | 1011 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) |
1012 | 1012 |
1013 #define HISTOGRAM_MEMORY_LIST(HM) \ | 1013 #define HISTOGRAM_MEMORY_LIST(HM) \ |
1014 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ | 1014 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ |
1015 HM(memory_heap_used, V8.MemoryHeapUsed) \ | 1015 HM(memory_heap_used, V8.MemoryHeapUsed) \ |
1016 /* Asm/Wasm */ \ | 1016 /* Asm/Wasm */ \ |
1017 HM(wasm_decode_module_peak_memory_bytes, V8.WasmDecodeModulePeakMemoryBytes) \ | 1017 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ |
1018 HM(wasm_compile_function_peak_memory_bytes, \ | 1018 HM(wasm_decode_asm_module_peak_memory_bytes, \ |
1019 V8.WasmCompileFunctionPeakMemoryBytes) \ | 1019 V8.WasmDecodeModulePeakMemoryBytes) \ |
1020 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ | 1020 HM(wasm_decode_wasm_module_peak_memory_bytes, \ |
1021 HM(wasm_asm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ | 1021 V8.WasmDecodeModulePeakMemoryBytes) \ |
1022 HM(wasm_wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ | 1022 HM(wasm_compile_function_peak_memory_bytes, \ |
1023 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \ | 1023 V8.WasmCompileFunctionPeakMemoryBytes) \ |
1024 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ | 1024 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ |
1025 HM(wasm_asm_function_size_bytes, V8.WasmFunctionSizeBytes) \ | 1025 HM(wasm_asm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ |
1026 HM(wasm_wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \ | 1026 HM(wasm_wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ |
| 1027 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \ |
| 1028 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ |
| 1029 HM(wasm_asm_function_size_bytes, V8.WasmFunctionSizeBytes) \ |
| 1030 HM(wasm_wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \ |
1027 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes) | 1031 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes) |
1028 | 1032 |
1029 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC | 1033 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC |
1030 // Intellisense to crash. It was broken into two macros (each of length 40 | 1034 // Intellisense to crash. It was broken into two macros (each of length 40 |
1031 // lines) rather than one macro (of length about 80 lines) to work around | 1035 // lines) rather than one macro (of length about 80 lines) to work around |
1032 // this problem. Please avoid using recursive macros of this length when | 1036 // this problem. Please avoid using recursive macros of this length when |
1033 // possible. | 1037 // possible. |
1034 #define STATS_COUNTER_LIST_1(SC) \ | 1038 #define STATS_COUNTER_LIST_1(SC) \ |
1035 /* Global Handle Count*/ \ | 1039 /* Global Handle Count*/ \ |
1036 SC(global_handles, V8.GlobalHandles) \ | 1040 SC(global_handles, V8.GlobalHandles) \ |
1037 /* OS Memory allocated */ \ | 1041 /* OS Memory allocated */ \ |
1038 SC(memory_allocated, V8.OsMemoryAllocated) \ | 1042 SC(memory_allocated, V8.OsMemoryAllocated) \ |
1039 SC(maps_normalized, V8.MapsNormalized) \ | 1043 SC(maps_normalized, V8.MapsNormalized) \ |
1040 SC(maps_created, V8.MapsCreated) \ | 1044 SC(maps_created, V8.MapsCreated) \ |
1041 SC(elements_transitions, V8.ObjectElementsTransitions) \ | 1045 SC(elements_transitions, V8.ObjectElementsTransitions) \ |
1042 SC(props_to_dictionary, V8.ObjectPropertiesToDictionary) \ | 1046 SC(props_to_dictionary, V8.ObjectPropertiesToDictionary) \ |
1043 SC(elements_to_dictionary, V8.ObjectElementsToDictionary) \ | 1047 SC(elements_to_dictionary, V8.ObjectElementsToDictionary) \ |
1044 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ | 1048 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ |
1045 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ | 1049 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ |
1046 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ | 1050 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ |
1047 SC(string_table_capacity, V8.StringTableCapacity) \ | 1051 SC(string_table_capacity, V8.StringTableCapacity) \ |
1048 SC(number_of_symbols, V8.NumberOfSymbols) \ | 1052 SC(number_of_symbols, V8.NumberOfSymbols) \ |
1049 SC(script_wrappers, V8.ScriptWrappers) \ | 1053 SC(script_wrappers, V8.ScriptWrappers) \ |
1050 SC(inlined_copied_elements, V8.InlinedCopiedElements) \ | 1054 SC(inlined_copied_elements, V8.InlinedCopiedElements) \ |
1051 SC(arguments_adaptors, V8.ArgumentsAdaptors) \ | 1055 SC(arguments_adaptors, V8.ArgumentsAdaptors) \ |
1052 SC(compilation_cache_hits, V8.CompilationCacheHits) \ | 1056 SC(compilation_cache_hits, V8.CompilationCacheHits) \ |
1053 SC(compilation_cache_misses, V8.CompilationCacheMisses) \ | 1057 SC(compilation_cache_misses, V8.CompilationCacheMisses) \ |
1054 /* Amount of evaled source code. */ \ | 1058 /* Amount of evaled source code. */ \ |
1055 SC(total_eval_size, V8.TotalEvalSize) \ | 1059 SC(total_eval_size, V8.TotalEvalSize) \ |
1056 /* Amount of loaded source code. */ \ | 1060 /* Amount of loaded source code. */ \ |
1057 SC(total_load_size, V8.TotalLoadSize) \ | 1061 SC(total_load_size, V8.TotalLoadSize) \ |
1058 /* Amount of parsed source code. */ \ | 1062 /* Amount of parsed source code. */ \ |
1059 SC(total_parse_size, V8.TotalParseSize) \ | 1063 SC(total_parse_size, V8.TotalParseSize) \ |
1060 /* Amount of source code skipped over using preparsing. */ \ | 1064 /* Amount of source code skipped over using preparsing. */ \ |
1061 SC(total_preparse_skipped, V8.TotalPreparseSkipped) \ | 1065 SC(total_preparse_skipped, V8.TotalPreparseSkipped) \ |
1062 /* Amount of compiled source code. */ \ | 1066 /* Amount of compiled source code. */ \ |
1063 SC(total_compile_size, V8.TotalCompileSize) \ | 1067 SC(total_compile_size, V8.TotalCompileSize) \ |
1064 /* Amount of source code compiled with the full codegen. */ \ | 1068 /* Amount of source code compiled with the full codegen. */ \ |
1065 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ | 1069 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ |
1066 /* Number of contexts created from scratch. */ \ | 1070 /* Number of contexts created from scratch. */ \ |
1067 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ | 1071 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ |
1068 /* Number of contexts created by partial snapshot. */ \ | 1072 /* Number of contexts created by partial snapshot. */ \ |
1069 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) \ | 1073 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) \ |
1070 /* Number of code objects found from pc. */ \ | 1074 /* Number of code objects found from pc. */ \ |
1071 SC(pc_to_code, V8.PcToCode) \ | 1075 SC(pc_to_code, V8.PcToCode) \ |
1072 SC(pc_to_code_cached, V8.PcToCodeCached) \ | 1076 SC(pc_to_code_cached, V8.PcToCodeCached) \ |
1073 /* The store-buffer implementation of the write barrier. */ \ | 1077 /* The store-buffer implementation of the write barrier. */ \ |
1074 SC(store_buffer_overflows, V8.StoreBufferOverflows) | 1078 SC(store_buffer_overflows, V8.StoreBufferOverflows) |
1075 | 1079 |
1076 #define STATS_COUNTER_LIST_2(SC) \ | 1080 #define STATS_COUNTER_LIST_2(SC) \ |
1077 /* Number of code stubs. */ \ | 1081 /* Number of code stubs. */ \ |
1078 SC(code_stubs, V8.CodeStubs) \ | 1082 SC(code_stubs, V8.CodeStubs) \ |
1079 /* Amount of stub code. */ \ | 1083 /* Amount of stub code. */ \ |
1080 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ | 1084 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ |
1081 /* Amount of (JS) compiled code. */ \ | 1085 /* Amount of (JS) compiled code. */ \ |
1082 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ | 1086 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ |
1083 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ | 1087 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 | 1340 |
1337 explicit Counters(Isolate* isolate); | 1341 explicit Counters(Isolate* isolate); |
1338 | 1342 |
1339 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1343 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1340 }; | 1344 }; |
1341 | 1345 |
1342 } // namespace internal | 1346 } // namespace internal |
1343 } // namespace v8 | 1347 } // namespace v8 |
1344 | 1348 |
1345 #endif // V8_COUNTERS_H_ | 1349 #endif // V8_COUNTERS_H_ |
OLD | NEW |