| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 285   } | 285   } | 
| 286 | 286 | 
| 287  private: | 287  private: | 
| 288   HistogramTimer* timer_; | 288   HistogramTimer* timer_; | 
| 289 #ifdef DEBUG | 289 #ifdef DEBUG | 
| 290   bool skipped_timer_start_; | 290   bool skipped_timer_start_; | 
| 291 #endif | 291 #endif | 
| 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   /* Parsing timers. */                                               \ | 300   HT(gc_idle_notification, V8.GCIdleNotification)            \ | 
| 301   HT(parse, V8.Parse)                                                 \ | 301   HT(gc_incremental_marking, V8.GCIncrementalMarking)        \ | 
| 302   HT(parse_lazy, V8.ParseLazy)                                        \ | 302   /* Parsing timers. */                                      \ | 
| 303   HT(pre_parse, V8.PreParse)                                          \ | 303   HT(parse, V8.Parse)                                        \ | 
| 304   /* Total compilation times. */                                      \ | 304   HT(parse_lazy, V8.ParseLazy)                               \ | 
| 305   HT(compile, V8.Compile)                                             \ | 305   HT(pre_parse, V8.PreParse)                                 \ | 
| 306   HT(compile_eval, V8.CompileEval)                                    \ | 306   /* Total compilation times. */                             \ | 
|  | 307   HT(compile, V8.Compile)                                    \ | 
|  | 308   HT(compile_eval, V8.CompileEval)                           \ | 
| 307   HT(compile_lazy, V8.CompileLazy) | 309   HT(compile_lazy, V8.CompileLazy) | 
| 308 | 310 | 
| 309 #define HISTOGRAM_PERCENTAGE_LIST(HP)                                 \ | 311 #define HISTOGRAM_PERCENTAGE_LIST(HP)                                 \ | 
| 310   /* Heap fragmentation. */                                           \ | 312   /* Heap fragmentation. */                                           \ | 
| 311   HP(external_fragmentation_total,                                    \ | 313   HP(external_fragmentation_total,                                    \ | 
| 312      V8.MemoryExternalFragmentationTotal)                             \ | 314      V8.MemoryExternalFragmentationTotal)                             \ | 
| 313   HP(external_fragmentation_old_pointer_space,                        \ | 315   HP(external_fragmentation_old_pointer_space,                        \ | 
| 314      V8.MemoryExternalFragmentationOldPointerSpace)                   \ | 316      V8.MemoryExternalFragmentationOldPointerSpace)                   \ | 
| 315   HP(external_fragmentation_old_data_space,                           \ | 317   HP(external_fragmentation_old_data_space,                           \ | 
| 316      V8.MemoryExternalFragmentationOldDataSpace)                      \ | 318      V8.MemoryExternalFragmentationOldDataSpace)                      \ | 
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 684   friend class Isolate; | 686   friend class Isolate; | 
| 685 | 687 | 
| 686   explicit Counters(Isolate* isolate); | 688   explicit Counters(Isolate* isolate); | 
| 687 | 689 | 
| 688   DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 690   DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 
| 689 }; | 691 }; | 
| 690 | 692 | 
| 691 } }  // namespace v8::internal | 693 } }  // namespace v8::internal | 
| 692 | 694 | 
| 693 #endif  // V8_COUNTERS_H_ | 695 #endif  // V8_COUNTERS_H_ | 
| OLD | NEW | 
|---|