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

Side by Side Diff: src/counters.h

Issue 934773002: Add historgram for number of GC needed to collect a detached context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make tracking default, add tracing, and fix a bug. 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/flag-definitions.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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698