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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 HT(gc_context, V8.GCContext) /* GC context cleanup time */ \ | 302 HT(gc_context, V8.GCContext) /* GC context cleanup time */ \ |
303 HT(gc_idle_notification, V8.GCIdleNotification) \ | 303 HT(gc_idle_notification, V8.GCIdleNotification) \ |
304 HT(gc_incremental_marking, V8.GCIncrementalMarking) \ | 304 HT(gc_incremental_marking, V8.GCIncrementalMarking) \ |
305 HT(gc_low_memory_notification, V8.GCLowMemoryNotification) \ | 305 HT(gc_low_memory_notification, V8.GCLowMemoryNotification) \ |
306 /* Parsing timers. */ \ | 306 /* Parsing timers. */ \ |
307 HT(parse, V8.Parse) \ | 307 HT(parse, V8.Parse) \ |
308 HT(parse_lazy, V8.ParseLazy) \ | 308 HT(parse_lazy, V8.ParseLazy) \ |
309 HT(pre_parse, V8.PreParse) \ | 309 HT(pre_parse, V8.PreParse) \ |
310 /* Total compilation times. */ \ | 310 /* Total compilation times. */ \ |
311 HT(compile, V8.Compile) \ | 311 HT(compile, V8.Compile) \ |
312 HT(compile_eval, V8.CompileEval) \ | 312 HT(compile_eval, V8.CompileEval) |
313 HT(compile_lazy, V8.CompileLazy) | |
314 | 313 |
315 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ | 314 #define HISTOGRAM_PERCENTAGE_LIST(HP) \ |
316 /* Heap fragmentation. */ \ | 315 /* Heap fragmentation. */ \ |
317 HP(external_fragmentation_total, \ | 316 HP(external_fragmentation_total, \ |
318 V8.MemoryExternalFragmentationTotal) \ | 317 V8.MemoryExternalFragmentationTotal) \ |
319 HP(external_fragmentation_old_pointer_space, \ | 318 HP(external_fragmentation_old_pointer_space, \ |
320 V8.MemoryExternalFragmentationOldPointerSpace) \ | 319 V8.MemoryExternalFragmentationOldPointerSpace) \ |
321 HP(external_fragmentation_old_data_space, \ | 320 HP(external_fragmentation_old_data_space, \ |
322 V8.MemoryExternalFragmentationOldDataSpace) \ | 321 V8.MemoryExternalFragmentationOldDataSpace) \ |
323 HP(external_fragmentation_code_space, \ | 322 HP(external_fragmentation_code_space, \ |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 friend class Isolate; | 696 friend class Isolate; |
698 | 697 |
699 explicit Counters(Isolate* isolate); | 698 explicit Counters(Isolate* isolate); |
700 | 699 |
701 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 700 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
702 }; | 701 }; |
703 | 702 |
704 } } // namespace v8::internal | 703 } } // namespace v8::internal |
705 | 704 |
706 #endif // V8_COUNTERS_H_ | 705 #endif // V8_COUNTERS_H_ |
OLD | NEW |