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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
928 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ | 928 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ |
929 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \ | 929 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \ |
930 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \ | 930 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \ |
931 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \ | 931 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \ |
932 HR(young_generation_handling, V8.GCYoungGenerationHandling, 0, 2, 3) \ | 932 HR(young_generation_handling, V8.GCYoungGenerationHandling, 0, 2, 3) \ |
933 /* Asm/Wasm. */ \ | 933 /* Asm/Wasm. */ \ |
934 HR(wasm_functions_per_asm_module, V8.WasmFunctionsPerModule.asm, 1, 100000, \ | 934 HR(wasm_functions_per_asm_module, V8.WasmFunctionsPerModule.asm, 1, 100000, \ |
935 51) \ | 935 51) \ |
936 HR(wasm_functions_per_wasm_module, V8.WasmFunctionsPerModule.wasm, 1, \ | 936 HR(wasm_functions_per_wasm_module, V8.WasmFunctionsPerModule.wasm, 1, \ |
937 100000, 51) \ | 937 100000, 51) \ |
938 HR(array_buffer_big_allocations, V8.ArrayBufferBigAllocations, 0, 4096, 13) \ | 938 HR(array_buffer_big_allocations, V8.ArrayBufferBigAllocations, 1, 4096, 13) \ |
Ilya Sherman
2017/05/01 19:51:14
Please rename the histogram, as you are changing t
kschimpf
2017/05/04 20:51:36
Is this really necessary. This metric was created
Ilya Sherman
2017/05/04 21:21:21
Well, I think it might actually be the same bucket
kschimpf
2017/05/05 17:05:37
Ok. Changing the name of the metric, and introduci
| |
939 HR(array_buffer_new_size_failures, V8.ArrayBufferNewSizeFailures, 0, 4096, 13) | 939 HR(array_buffer_new_size_failures, V8.ArrayBufferNewSizeFailures, 0, 4096, 13) |
940 | 940 |
941 #define HISTOGRAM_TIMER_LIST(HT) \ | 941 #define HISTOGRAM_TIMER_LIST(HT) \ |
942 /* Garbage collection timers. */ \ | 942 /* Garbage collection timers. */ \ |
943 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ | 943 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ |
944 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ | 944 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ |
945 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ | 945 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ |
946 MILLISECOND) \ | 946 MILLISECOND) \ |
947 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ | 947 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ |
948 HT(gc_context, V8.GCContext, 10000, \ | 948 HT(gc_context, V8.GCContext, 10000, \ |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1345 | 1345 |
1346 explicit Counters(Isolate* isolate); | 1346 explicit Counters(Isolate* isolate); |
1347 | 1347 |
1348 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1348 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1349 }; | 1349 }; |
1350 | 1350 |
1351 } // namespace internal | 1351 } // namespace internal |
1352 } // namespace v8 | 1352 } // namespace v8 |
1353 | 1353 |
1354 #endif // V8_COUNTERS_H_ | 1354 #endif // V8_COUNTERS_H_ |
OLD | NEW |