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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ | 663 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ |
664 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ | 664 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ |
665 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ | 665 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ |
666 101) \ | 666 101) \ |
667 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ | 667 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ |
668 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \ | 668 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \ |
669 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ | 669 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ |
670 /* Asm/Wasm. */ \ | 670 /* Asm/Wasm. */ \ |
671 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51) | 671 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51) |
672 | 672 |
673 #define HISTOGRAM_TIMER_LIST(HT) \ | 673 #define HISTOGRAM_TIMER_LIST(HT) \ |
674 /* Garbage collection timers. */ \ | 674 /* Garbage collection timers. */ \ |
675 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ | 675 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ |
676 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ | 676 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ |
677 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ | 677 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ |
678 MILLISECOND) \ | 678 MILLISECOND) \ |
679 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ | 679 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ |
680 HT(gc_context, V8.GCContext, 10000, \ | 680 HT(gc_context, V8.GCContext, 10000, \ |
681 MILLISECOND) /* GC context cleanup time */ \ | 681 MILLISECOND) /* GC context cleanup time */ \ |
682 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ | 682 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ |
683 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ | 683 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ |
684 HT(gc_incremental_marking_start, V8.GCIncrementalMarkingStart, 10000, \ | 684 HT(gc_incremental_marking_start, V8.GCIncrementalMarkingStart, 10000, \ |
685 MILLISECOND) \ | 685 MILLISECOND) \ |
686 HT(gc_incremental_marking_finalize, V8.GCIncrementalMarkingFinalize, 10000, \ | 686 HT(gc_incremental_marking_finalize, V8.GCIncrementalMarkingFinalize, 10000, \ |
687 MILLISECOND) \ | 687 MILLISECOND) \ |
688 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ | 688 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ |
689 MILLISECOND) \ | 689 MILLISECOND) \ |
690 /* Parsing timers. */ \ | 690 /* Parsing timers. */ \ |
691 HT(parse, V8.ParseMicroSeconds, 1000000, MICROSECOND) \ | 691 HT(parse, V8.ParseMicroSeconds, 1000000, MICROSECOND) \ |
692 HT(parse_lazy, V8.ParseLazyMicroSeconds, 1000000, MICROSECOND) \ | 692 HT(parse_lazy, V8.ParseLazyMicroSeconds, 1000000, MICROSECOND) \ |
693 HT(pre_parse, V8.PreParseMicroSeconds, 1000000, MICROSECOND) \ | 693 HT(pre_parse, V8.PreParseMicroSeconds, 1000000, MICROSECOND) \ |
694 /* Compilation times. */ \ | 694 /* Compilation times. */ \ |
695 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ | 695 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ |
696 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ | 696 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ |
697 /* Serialization as part of compilation (code caching) */ \ | 697 /* Serialization as part of compilation (code caching) */ \ |
698 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ | 698 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ |
699 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ | 699 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ |
700 MICROSECOND) \ | 700 MICROSECOND) \ |
701 /* Total compilation time incl. caching/parsing */ \ | 701 /* Total compilation time incl. caching/parsing */ \ |
702 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ | 702 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ |
703 /* Asm/Wasm */ \ | 703 /* Total JavaScript execution time (including callbacks and runtime calls */ \ |
704 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \ | 704 HT(execute, V8.Execute, 1000000, MICROSECOND) \ |
705 1000000, MICROSECOND) \ | 705 /* Asm/Wasm */ \ |
706 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ | 706 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \ |
707 MICROSECOND) \ | 707 1000000, MICROSECOND) \ |
708 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ | 708 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ |
709 MICROSECOND) \ | 709 MICROSECOND) \ |
710 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ | 710 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ |
711 MICROSECOND) \ | 711 MICROSECOND) \ |
712 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ | 712 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ |
| 713 MICROSECOND) \ |
| 714 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ |
713 MICROSECOND) | 715 MICROSECOND) |
714 | 716 |
715 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ | 717 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ |
716 AHT(compile_lazy, V8.CompileLazyMicroSeconds) | 718 AHT(compile_lazy, V8.CompileLazyMicroSeconds) |
717 | 719 |
718 | 720 |
719 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ | 721 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ |
720 /* Heap fragmentation. */ \ | 722 /* Heap fragmentation. */ \ |
721 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ | 723 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ |
722 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ | 724 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 | 1069 |
1068 explicit Counters(Isolate* isolate); | 1070 explicit Counters(Isolate* isolate); |
1069 | 1071 |
1070 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 1072 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
1071 }; | 1073 }; |
1072 | 1074 |
1073 } // namespace internal | 1075 } // namespace internal |
1074 } // namespace v8 | 1076 } // namespace v8 |
1075 | 1077 |
1076 #endif // V8_COUNTERS_H_ | 1078 #endif // V8_COUNTERS_H_ |
OLD | NEW |