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

Side by Side Diff: src/counters.h

Issue 2322453002: [heap] Add histogram counters to track GC reasons. (Closed)
Patch Set: Add comment Created 4 years, 3 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/heap/gc-tracer.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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 #define HISTOGRAM_RANGE_LIST(HR) \ 828 #define HISTOGRAM_RANGE_LIST(HR) \
829 /* Generic range histograms */ \ 829 /* Generic range histograms */ \
830 HR(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \ 830 HR(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \
831 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ 831 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \
832 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ 832 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \
833 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ 833 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \
834 101) \ 834 101) \
835 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ 835 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \
836 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \ 836 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \
837 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \ 837 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7) \
838 HR(incremental_marking_reason, V8.GCIncrementalMarkingReason, 0, 21, 22) \
839 HR(mark_compact_reason, V8.GCMarkCompactReason, 0, 21, 22) \
840 HR(scavenge_reason, V8.GCScavengeReason, 0, 21, 22) \
838 /* Asm/Wasm. */ \ 841 /* Asm/Wasm. */ \
839 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51) 842 HR(wasm_functions_per_module, V8.WasmFunctionsPerModule, 1, 10000, 51)
840 843
841 #define HISTOGRAM_TIMER_LIST(HT) \ 844 #define HISTOGRAM_TIMER_LIST(HT) \
842 /* Garbage collection timers. */ \ 845 /* Garbage collection timers. */ \
843 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ 846 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \
844 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ 847 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \
845 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ 848 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \
846 MILLISECOND) \ 849 MILLISECOND) \
847 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ 850 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 // isolate reference and a timer for both. 1287 // isolate reference and a timer for both.
1285 Isolate* isolate_for_tracing_ = nullptr; 1288 Isolate* isolate_for_tracing_ = nullptr;
1286 RuntimeCallTimer timer_; 1289 RuntimeCallTimer timer_;
1287 RuntimeCallTimer trace_event_timer_; 1290 RuntimeCallTimer trace_event_timer_;
1288 }; 1291 };
1289 1292
1290 } // namespace internal 1293 } // namespace internal
1291 } // namespace v8 1294 } // namespace v8
1292 1295
1293 #endif // V8_COUNTERS_H_ 1296 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698