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

Side by Side Diff: src/counters.h

Issue 922573003: Track code cache reject reason via histogram buckets. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename Created 5 years, 10 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/serialize.h » ('j') | src/serialize.cc » ('J')
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 private: 355 private:
356 base::ElapsedTimer timer_; 356 base::ElapsedTimer timer_;
357 AggregatableHistogramTimer* histogram_; 357 AggregatableHistogramTimer* histogram_;
358 }; 358 };
359 359
360 360
361 #define HISTOGRAM_RANGE_LIST(HR) \ 361 #define HISTOGRAM_RANGE_LIST(HR) \
362 /* Generic range histograms */ \ 362 /* Generic range histograms */ \
363 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ 363 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \
364 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ 364 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \
365 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, 101) 365 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \
366 101) \
367 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6)
366 368
367 #define HISTOGRAM_TIMER_LIST(HT) \ 369 #define HISTOGRAM_TIMER_LIST(HT) \
368 /* Garbage collection timers. */ \ 370 /* Garbage collection timers. */ \
369 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ 371 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \
370 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ 372 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \
371 HT(gc_context, V8.GCContext, 10000, \ 373 HT(gc_context, V8.GCContext, 10000, \
372 MILLISECOND) /* GC context cleanup time */ \ 374 MILLISECOND) /* GC context cleanup time */ \
373 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \ 375 HT(gc_idle_notification, V8.GCIdleNotification, 10000, MILLISECOND) \
374 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \ 376 HT(gc_incremental_marking, V8.GCIncrementalMarking, 10000, MILLISECOND) \
375 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \ 377 HT(gc_low_memory_notification, V8.GCLowMemoryNotification, 10000, \
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 friend class Isolate; 791 friend class Isolate;
790 792
791 explicit Counters(Isolate* isolate); 793 explicit Counters(Isolate* isolate);
792 794
793 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 795 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
794 }; 796 };
795 797
796 } } // namespace v8::internal 798 } } // namespace v8::internal
797 799
798 #endif // V8_COUNTERS_H_ 800 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/serialize.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698