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

Side by Side Diff: src/counters.h

Issue 416853002: Add a histogram timer around low memory notifications from API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | no next file » | 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 }; 292 };
293 293
294 294
295 #define HISTOGRAM_TIMER_LIST(HT) \ 295 #define HISTOGRAM_TIMER_LIST(HT) \
296 /* Garbage collection timers. */ \ 296 /* Garbage collection timers. */ \
297 HT(gc_compactor, V8.GCCompactor) \ 297 HT(gc_compactor, V8.GCCompactor) \
298 HT(gc_scavenger, V8.GCScavenger) \ 298 HT(gc_scavenger, V8.GCScavenger) \
299 HT(gc_context, V8.GCContext) /* GC context cleanup time */ \ 299 HT(gc_context, V8.GCContext) /* GC context cleanup time */ \
300 HT(gc_idle_notification, V8.GCIdleNotification) \ 300 HT(gc_idle_notification, V8.GCIdleNotification) \
301 HT(gc_incremental_marking, V8.GCIncrementalMarking) \ 301 HT(gc_incremental_marking, V8.GCIncrementalMarking) \
302 HT(gc_low_memory_notification, V8.GCLowMemoryNotification) \
302 /* Parsing timers. */ \ 303 /* Parsing timers. */ \
303 HT(parse, V8.Parse) \ 304 HT(parse, V8.Parse) \
304 HT(parse_lazy, V8.ParseLazy) \ 305 HT(parse_lazy, V8.ParseLazy) \
305 HT(pre_parse, V8.PreParse) \ 306 HT(pre_parse, V8.PreParse) \
306 /* Total compilation times. */ \ 307 /* Total compilation times. */ \
307 HT(compile, V8.Compile) \ 308 HT(compile, V8.Compile) \
308 HT(compile_eval, V8.CompileEval) \ 309 HT(compile_eval, V8.CompileEval) \
309 HT(compile_lazy, V8.CompileLazy) 310 HT(compile_lazy, V8.CompileLazy)
310 311
311 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ 312 #define HISTOGRAM_PERCENTAGE_LIST(HP) \
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 friend class Isolate; 687 friend class Isolate;
687 688
688 explicit Counters(Isolate* isolate); 689 explicit Counters(Isolate* isolate);
689 690
690 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 691 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
691 }; 692 };
692 693
693 } } // namespace v8::internal 694 } } // namespace v8::internal
694 695
695 #endif // V8_COUNTERS_H_ 696 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698