| 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ | 586 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ |
| 587 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ | 587 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ |
| 588 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ | 588 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ |
| 589 101) \ | 589 101) \ |
| 590 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ | 590 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ |
| 591 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \ | 591 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \ |
| 592 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ | 592 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ |
| 593 /* Asm/Wasm. */ \ | 593 /* Asm/Wasm. */ \ |
| 594 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51) | 594 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51) |
| 595 | 595 |
| 596 #define HISTOGRAM_TIMER_LIST(HT) \ | 596 #define HISTOGRAM_TIMER_LIST(HT) \ |
| 597 /* Garbage collection timers. */ \ | 597 /* Garbage collection timers. */ \ |
| 598 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ | 598 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ |
| 599 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ | 599 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ |
| 600 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ | 600 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ |
| 601 MILLISECOND) \ | 601 MILLISECOND) \ |
| 602 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ | 602 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ |
| 603 HT(gc_context, V8.GCContext, 10000, \ | 603 HT(gc_context, V8.GCContext, 10000, \ |
| 604 MILLISECOND) /* GC context cleanup time */ \ | 604 MILLISECOND) /* GC context cleanup time */ \ |
| 605 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ | 605 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ |
| 606 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ | 606 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ |
| 607 HT(gc_incremental_marking_start, V8.GCIncrementalMarkingStart, 10000, \ | 607 HT(gc_incremental_marking_start, V8.GCIncrementalMarkingStart, 10000, \ |
| 608 MILLISECOND) \ | 608 MILLISECOND) \ |
| 609 HT(gc_incremental_marking_finalize, V8.GCIncrementalMarkingFinalize, 10000, \ | 609 HT(gc_incremental_marking_finalize, V8.GCIncrementalMarkingFinalize, 10000, \ |
| 610 MILLISECOND) \ | 610 MILLISECOND) \ |
| 611 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ | 611 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ |
| 612 MILLISECOND) \ | 612 MILLISECOND) \ |
| 613 /* Parsing timers. */ \ | 613 /* Parsing timers. */ \ |
| 614 HT(parse, V8.ParseMicroSeconds, 1000000, MICROSECOND) \ | 614 HT(parse, V8.ParseMicroSeconds, 1000000, MICROSECOND) \ |
| 615 HT(parse_lazy, V8.ParseLazyMicroSeconds, 1000000, MICROSECOND) \ | 615 HT(parse_lazy, V8.ParseLazyMicroSeconds, 1000000, MICROSECOND) \ |
| 616 HT(pre_parse, V8.PreParseMicroSeconds, 1000000, MICROSECOND) \ | 616 HT(pre_parse, V8.PreParseMicroSeconds, 1000000, MICROSECOND) \ |
| 617 /* Compilation times. */ \ | 617 /* Compilation times. */ \ |
| 618 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ | 618 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ |
| 619 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ | 619 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ |
| 620 /* Serialization as part of compilation (code caching) */ \ | 620 /* Serialization as part of compilation (code caching) */ \ |
| 621 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ | 621 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ |
| 622 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ | 622 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ |
| 623 MICROSECOND) \ | 623 MICROSECOND) \ |
| 624 /* Total compilation time incl. caching/parsing */ \ | 624 /* Total compilation time incl. caching/parsing */ \ |
| 625 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ | 625 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ |
| 626 /* Asm/Wasm */ \ | 626 /* Total JavaScript execution time (including callbacks and runtime calls */ \ |
| 627 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \ | 627 HT(execute, V8.Execute, 1000000, MICROSECOND) \ |
| 628 1000000, MICROSECOND) \ | 628 /* Asm/Wasm */ \ |
| 629 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ | 629 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \ |
| 630 MICROSECOND) \ | 630 1000000, MICROSECOND) \ |
| 631 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ | 631 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ |
| 632 MICROSECOND) \ | 632 MICROSECOND) \ |
| 633 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ | 633 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ |
| 634 MICROSECOND) \ | 634 MICROSECOND) \ |
| 635 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ | 635 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ |
| 636 MICROSECOND) \ |
| 637 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ |
| 636 MICROSECOND) | 638 MICROSECOND) |
| 637 | 639 |
| 638 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ | 640 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ |
| 639 AHT(compile_lazy, V8.CompileLazyMicroSeconds) | 641 AHT(compile_lazy, V8.CompileLazyMicroSeconds) |
| 640 | 642 |
| 641 | 643 |
| 642 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ | 644 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ |
| 643 /* Heap fragmentation. */ \ | 645 /* Heap fragmentation. */ \ |
| 644 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ | 646 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ |
| 645 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ | 647 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 | 992 |
| 991 explicit Counters(Isolate* isolate); | 993 explicit Counters(Isolate* isolate); |
| 992 | 994 |
| 993 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 995 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
| 994 }; | 996 }; |
| 995 | 997 |
| 996 } // namespace internal | 998 } // namespace internal |
| 997 } // namespace v8 | 999 } // namespace v8 |
| 998 | 1000 |
| 999 #endif // V8_COUNTERS_H_ | 1001 #endif // V8_COUNTERS_H_ |
| OLD | NEW |