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

Side by Side Diff: src/counters.h

Issue 1478613004: [debugger] track debugger feature usage via histogram. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/debug/debug.h » ('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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 478
479 #define HISTOGRAM_RANGE_LIST(HR) \ 479 #define HISTOGRAM_RANGE_LIST(HR) \
480 /* Generic range histograms */ \ 480 /* Generic range histograms */ \
481 HR(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \ 481 HR(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \
482 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ 482 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \
483 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ 483 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \
484 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ 484 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \
485 101) \ 485 101) \
486 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \ 486 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) \
487 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) 487 HR(errors_thrown_per_context, V8.ErrorsThrownPerContext, 0, 200, 20) \
488 HR(debug_feature_usage, V8.DebugFeatureUsage, 1, 7, 7)
488 489
489 #define HISTOGRAM_TIMER_LIST(HT) \ 490 #define HISTOGRAM_TIMER_LIST(HT) \
490 /* Garbage collection timers. */ \ 491 /* Garbage collection timers. */ \
491 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ 492 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \
492 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \ 493 HT(gc_finalize, V8.GCFinalizeMC, 10000, MILLISECOND) \
493 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \ 494 HT(gc_finalize_reduce_memory, V8.GCFinalizeMCReduceMemory, 10000, \
494 MILLISECOND) \ 495 MILLISECOND) \
495 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ 496 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \
496 HT(gc_context, V8.GCContext, 10000, \ 497 HT(gc_context, V8.GCContext, 10000, \
497 MILLISECOND) /* GC context cleanup time */ \ 498 MILLISECOND) /* GC context cleanup time */ \
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 892
892 explicit Counters(Isolate* isolate); 893 explicit Counters(Isolate* isolate);
893 894
894 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 895 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
895 }; 896 };
896 897
897 } // namespace internal 898 } // namespace internal
898 } // namespace v8 899 } // namespace v8
899 900
900 #endif // V8_COUNTERS_H_ 901 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698