OLD | NEW |
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 ~AggregatedHistogramTimerScope() { histogram_->Add(timer_.Elapsed()); } | 353 ~AggregatedHistogramTimerScope() { histogram_->Add(timer_.Elapsed()); } |
354 | 354 |
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(detached_context_age_in_gc, V8.DetachedContextAgeInGC, 0, 20, 21) \ |
363 HR(gc_idle_time_allotted_in_ms, V8.GCIdleTimeAllottedInMS, 0, 10000, 101) \ | 364 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) \ | 365 HR(gc_idle_time_limit_overshot, V8.GCIdleTimeLimit.Overshot, 0, 10000, 101) \ |
365 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ | 366 HR(gc_idle_time_limit_undershot, V8.GCIdleTimeLimit.Undershot, 0, 10000, \ |
366 101) \ | 367 101) \ |
367 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) | 368 HR(code_cache_reject_reason, V8.CodeCacheRejectReason, 1, 6, 6) |
368 | 369 |
369 #define HISTOGRAM_TIMER_LIST(HT) \ | 370 #define HISTOGRAM_TIMER_LIST(HT) \ |
370 /* Garbage collection timers. */ \ | 371 /* Garbage collection timers. */ \ |
371 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ | 372 HT(gc_compactor, V8.GCCompactor, 10000, MILLISECOND) \ |
372 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ | 373 HT(gc_scavenger, V8.GCScavenger, 10000, MILLISECOND) \ |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 friend class Isolate; | 792 friend class Isolate; |
792 | 793 |
793 explicit Counters(Isolate* isolate); | 794 explicit Counters(Isolate* isolate); |
794 | 795 |
795 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 796 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
796 }; | 797 }; |
797 | 798 |
798 } } // namespace v8::internal | 799 } } // namespace v8::internal |
799 | 800 |
800 #endif // V8_COUNTERS_H_ | 801 #endif // V8_COUNTERS_H_ |
OLD | NEW |