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

Side by Side Diff: src/counters.h

Issue 1895223004: Reduce bucket count and range for wasm function count, and add "module" to some names. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add "module" Created 4 years, 8 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 | « no previous file | src/wasm/module-decoder.cc » ('j') | 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 /* Generic range histograms */ \ 583 /* Generic range histograms */ \
584 HR(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \ 584 HR(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \
585 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ 585 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \
586 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ 586 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \
587 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ 587 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \
588 101) \ 588 101) \
589 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ 589 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \
590 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \ 590 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \
591 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ 591 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \
592 /* Asm/Wasm. */ \ 592 /* Asm/Wasm. */ \
593 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 0, 10000, 101) 593 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51)
Ilya Sherman 2016/04/19 09:01:08 If you're already logging this histogram, then cha
bradn 2016/04/19 22:02:56 Isn't on the branch yet.
594 594
595 #define HISTOGRAM_TIMER_LIST(HT) \ 595 #define HISTOGRAM_TIMER_LIST(HT) \
596 /* Garbage collection timers. */ \ 596 /* Garbage collection timers. */ \
597 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ 597 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \
598 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ 598 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \
599 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ 599 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \
600 MILLISECOND) \ 600 MILLISECOND) \
601 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ 601 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \
602 HT(gc_context, V8.GCContext, 10000, \ 602 HT(gc_context, V8.GCContext, 10000, \
603 MILLISECOND) /* GC context cleanup time */ \ 603 MILLISECOND) /* GC context cleanup time */ \
(...skipping 12 matching lines...) Expand all
616 /* Compilation times. */ \ 616 /* Compilation times. */ \
617 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \ 617 HT(compile, V8.CompileMicroSeconds, 1000000, MICROSECOND) \
618 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \ 618 HT(compile_eval, V8.CompileEvalMicroSeconds, 1000000, MICROSECOND) \
619 /* Serialization as part of compilation (code caching) */ \ 619 /* Serialization as part of compilation (code caching) */ \
620 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \ 620 HT(compile_serialize, V8.CompileSerializeMicroSeconds, 100000, MICROSECOND) \
621 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \ 621 HT(compile_deserialize, V8.CompileDeserializeMicroSeconds, 1000000, \
622 MICROSECOND) \ 622 MICROSECOND) \
623 /* Total compilation time incl. caching/parsing */ \ 623 /* Total compilation time incl. caching/parsing */ \
624 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \ 624 HT(compile_script, V8.CompileScriptMicroSeconds, 1000000, MICROSECOND) \
625 /* Asm/Wasm */ \ 625 /* Asm/Wasm */ \
626 HT(wasm_instantiate_time, V8.WasmInstantiateMicroSeconds, 1000000, \ 626 HT(wasm_instantiate_module_time, V8.WasmInstantiateModuleMicroSeconds, \
627 MICROSECOND) \ 627 1000000, MICROSECOND) \
628 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \ 628 HT(wasm_decode_module_time, V8.WasmDecodeModuleMicroSeconds, 1000000, \
629 MICROSECOND) \ 629 MICROSECOND) \
630 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \ 630 HT(wasm_decode_function_time, V8.WasmDecodeFunctionMicroSeconds, 1000000, \
631 MICROSECOND) \ 631 MICROSECOND) \
632 HT(wasm_compile_time, V8.WasmCompileMicroSeconds, 1000000, MICROSECOND) \ 632 HT(wasm_compile_module_time, V8.WasmCompileModuleMicroSeconds, 1000000, \
633 MICROSECOND) \
633 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \ 634 HT(wasm_compile_function_time, V8.WasmCompileFunctionMicroSeconds, 1000000, \
634 MICROSECOND) 635 MICROSECOND)
635 636
636 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \ 637 #define AGGREGATABLE_HISTOGRAM_TIMER_LIST(AHT) \
637 AHT(compile_lazy, V8.CompileLazyMicroSeconds) 638 AHT(compile_lazy, V8.CompileLazyMicroSeconds)
638 639
639 640
640 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ 641 #define HISTOGRAM_PERCENTAGE_LIST(HP) \
641 /* Heap fragmentation. */ \ 642 /* Heap fragmentation. */ \
642 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \ 643 HP(external_fragmentation_total, V8.MemoryExternalFragmentationTotal) \
(...skipping 12 matching lines...) Expand all
655 HP(codegen_fraction_crankshaft, V8.CodegenFractionCrankshaft) 656 HP(codegen_fraction_crankshaft, V8.CodegenFractionCrankshaft)
656 657
657 658
658 #define HISTOGRAM_LEGACY_MEMORY_LIST(HM) \ 659 #define HISTOGRAM_LEGACY_MEMORY_LIST(HM) \
659 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \ 660 HM(heap_sample_total_committed, V8.MemoryHeapSampleTotalCommitted) \
660 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \ 661 HM(heap_sample_total_used, V8.MemoryHeapSampleTotalUsed) \
661 HM(heap_sample_map_space_committed, V8.MemoryHeapSampleMapSpaceCommitted) \ 662 HM(heap_sample_map_space_committed, V8.MemoryHeapSampleMapSpaceCommitted) \
662 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \ 663 HM(heap_sample_code_space_committed, V8.MemoryHeapSampleCodeSpaceCommitted) \
663 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted) 664 HM(heap_sample_maximum_committed, V8.MemoryHeapSampleMaximumCommitted)
664 665
665 #define HISTOGRAM_MEMORY_LIST(HM) \ 666 #define HISTOGRAM_MEMORY_LIST(HM) \
666 HM(memory_heap_committed, V8.MemoryHeapCommitted) \ 667 HM(memory_heap_committed, V8.MemoryHeapCommitted) \
667 HM(memory_heap_used, V8.MemoryHeapUsed) \ 668 HM(memory_heap_used, V8.MemoryHeapUsed) \
668 /* Asm/Wasm */ \ 669 /* Asm/Wasm */ \
669 HM(wasm_decode_peak_memory_bytes, V8.WasmDecodePeakMemoryBytes) \ 670 HM(wasm_decode_module_peak_memory_bytes, V8.WasmDecodeModulePeakMemoryBytes) \
670 HM(wasm_compile_function_peak_memory_bytes, \ 671 HM(wasm_compile_function_peak_memory_bytes, \
671 V8.WasmCompileFunctionPeakMemoryBytes) \ 672 V8.WasmCompileFunctionPeakMemoryBytes) \
672 HM(wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ 673 HM(wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \
673 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \ 674 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \
674 HM(wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \ 675 HM(wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \
675 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes) 676 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes)
676 677
677 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC 678 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC
678 // Intellisense to crash. It was broken into two macros (each of length 40 679 // Intellisense to crash. It was broken into two macros (each of length 40
679 // lines) rather than one macro (of length about 80 lines) to work around 680 // lines) rather than one macro (of length about 80 lines) to work around
680 // this problem. Please avoid using recursive macros of this length when 681 // this problem. Please avoid using recursive macros of this length when
681 // possible. 682 // possible.
682 #define STATS_COUNTER_LIST_1(SC) \ 683 #define STATS_COUNTER_LIST_1(SC) \
683 /* Global Handle Count*/ \ 684 /* Global Handle Count*/ \
684 SC(global_handles, V8.GlobalHandles) \ 685 SC(global_handles, V8.GlobalHandles) \
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 989
989 explicit Counters(Isolate* isolate); 990 explicit Counters(Isolate* isolate);
990 991
991 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 992 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
992 }; 993 };
993 994
994 } // namespace internal 995 } // namespace internal
995 } // namespace v8 996 } // namespace v8
996 997
997 #endif // V8_COUNTERS_H_ 998 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/module-decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698