Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: src/counters.h

Issue 1970193003: Revert of Add V8.Execute histogram to measure time spent executing JS code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 /* Total JavaScript execution time (including callbacks and runtime calls */ \ 626 /* Asm/Wasm */ \
627 HT(execute, V8.Execute, 1000000, MICROSECOND) \ 627 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \
628 /* Asm/Wasm */ \ 628 1000000, MICROSECOND) \
629 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \ 629 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \
630 1000000, MICROSECOND) \ 630 MICROSECOND) \
631 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ 631 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \
632 MICROSECOND) \ 632 MICROSECOND) \
633 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ 633 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \
634 MICROSECOND) \ 634 MICROSECOND) \
635 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \ 635 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \
636 MICROSECOND) \
637 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \
638 MICROSECOND) 636 MICROSECOND)
639 637
640 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ 638 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \
641 AHT(compile_lazy, V8.CompileLazyMicroSeconds) 639 AHT(compile_lazy, V8.CompileLazyMicroSeconds)
642 640
643 641
644 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ 642 #define HISTOGRAM_PERCENTAGE_LIST(HP) \
645 /* Heap fragmentation. */ \ 643 /* Heap fragmentation. */ \
646 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ 644 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \
647 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \ 645 HP(external_fragmentation_old_space, V8.MemoryExternalFragmentationOldSpace) \
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 990
993 explicit Counters(Isolate* isolate); 991 explicit Counters(Isolate* isolate);
994 992
995 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 993 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
996 }; 994 };
997 995
998 } // namespace internal 996 } // namespace internal
999 } // namespace v8 997 } // namespace v8
1000 998
1001 #endif // V8_COUNTERS_H_ 999 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698