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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ | 932 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ |
933 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \ | 933 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \ |
934 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \ | 934 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \ |
935 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \ | 935 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \ |
936 HR(young_generation_handling, V8.GCYoungGenerationHandling, 0, 2, 3) \ | 936 HR(young_generation_handling, V8.GCYoungGenerationHandling, 0, 2, 3) \ |
937 /* Asm/Wasm. */ \ | 937 /* Asm/Wasm. */ \ |
938 HR(wasm_functions_per_asm_module, V8.WasmFunctionsPerModule.asm, 1, 100000, \ | 938 HR(wasm_functions_per_asm_module, V8.WasmFunctionsPerModule.asm, 1, 100000, \ |
939 51) \ | 939 51) \ |
940 HR(wasm_functions_per_wasm_module, V8.WasmFunctionsPerModule.wasm, 1, \ | 940 HR(wasm_functions_per_wasm_module, V8.WasmFunctionsPerModule.wasm, 1, \ |
941 100000, 51) \ | 941 100000, 51) \ |
942 HR(array_buffer_big_allocations, V8.ArrayBufferBigAllocations, 0, 4096, 13) \ | 942 HR(array_buffer_big_allocations, V8.ArrayBufferLargeAllocations, 0, 4096, \ |
| 943 13) \ |
943 HR(array_buffer_new_size_failures, V8.ArrayBufferNewSizeFailures, 0, 4096, 13) | 944 HR(array_buffer_new_size_failures, V8.ArrayBufferNewSizeFailures, 0, 4096, 13) |
944 | 945 |
945 #define HISTOGRAM_TIMER_LIST(HT) \ | 946 #define HISTOGRAM_TIMER_LIST(HT) \ |
946 /* Garbage collection timers. */ \ | 947 /* Garbage collection timers. */ \ |
947 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ | 948 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ |
948 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ | 949 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ |
949 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ | 950 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ |
950 MILLISECOND) \ | 951 MILLISECOND) \ |
951 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ | 952 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ |
952 HT(gc_context, V8.GCContext, 10000, \ | 953 HT(gc_context, V8.GCContext, 10000, \ |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1349 | 1350 |
1350 explicit Counters(Isolate* isolate); | 1351 explicit Counters(Isolate* isolate); |
1351 | 1352 |
1352 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1353 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1353 }; | 1354 }; |
1354 | 1355 |
1355 } // namespace internal | 1356 } // namespace internal |
1356 } // namespace v8 | 1357 } // namespace v8 |
1357 | 1358 |
1358 #endif // V8_COUNTERS_H_ | 1359 #endif // V8_COUNTERS_H_ |
OLD | NEW |