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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ | 569 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ |
570 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ | 570 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ |
571 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ | 571 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ |
572 SC(string_table_capacity, V8.StringTableCapacity) \ | 572 SC(string_table_capacity, V8.StringTableCapacity) \ |
573 SC(number_of_symbols, V8.NumberOfSymbols) \ | 573 SC(number_of_symbols, V8.NumberOfSymbols) \ |
574 SC(script_wrappers, V8.ScriptWrappers) \ | 574 SC(script_wrappers, V8.ScriptWrappers) \ |
575 SC(call_initialize_stubs, V8.CallInitializeStubs) \ | 575 SC(call_initialize_stubs, V8.CallInitializeStubs) \ |
576 SC(call_premonomorphic_stubs, V8.CallPreMonomorphicStubs) \ | 576 SC(call_premonomorphic_stubs, V8.CallPreMonomorphicStubs) \ |
577 SC(call_normal_stubs, V8.CallNormalStubs) \ | 577 SC(call_normal_stubs, V8.CallNormalStubs) \ |
578 SC(call_megamorphic_stubs, V8.CallMegamorphicStubs) \ | 578 SC(call_megamorphic_stubs, V8.CallMegamorphicStubs) \ |
579 SC(inlined_copied_elements, V8.InlinedCopiedElements) \ | 579 SC(inlined_copied_elements, V8.InlinedCopiedElements) \ |
580 SC(arguments_adaptors, V8.ArgumentsAdaptors) \ | 580 SC(arguments_adaptors, V8.ArgumentsAdaptors) \ |
581 SC(compilation_cache_hits, V8.CompilationCacheHits) \ | 581 SC(compilation_cache_hits, V8.CompilationCacheHits) \ |
582 SC(compilation_cache_misses, V8.CompilationCacheMisses) \ | 582 SC(compilation_cache_misses, V8.CompilationCacheMisses) \ |
583 /* Amount of evaled source code. */ \ | 583 /* Amount of evaled source code. */ \ |
584 SC(total_eval_size, V8.TotalEvalSize) \ | 584 SC(total_eval_size, V8.TotalEvalSize) \ |
585 /* Amount of loaded source code. */ \ | 585 /* Amount of loaded source code. */ \ |
586 SC(total_load_size, V8.TotalLoadSize) \ | 586 SC(total_load_size, V8.TotalLoadSize) \ |
587 /* Amount of parsed source code. */ \ | 587 /* Amount of parsed source code. */ \ |
588 SC(total_parse_size, V8.TotalParseSize) \ | 588 SC(total_parse_size, V8.TotalParseSize) \ |
589 /* Amount of source code skipped over using preparsing. */ \ | 589 /* Amount of source code skipped over using preparsing. */ \ |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \ | 711 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \ |
712 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \ | 712 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \ |
713 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ | 713 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \ |
714 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ | 714 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \ |
715 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ | 715 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \ |
716 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ | 716 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \ |
717 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) \ | 717 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed) \ |
718 SC(turbo_escape_allocs_replaced, V8.TurboEscapeAllocsReplaced) \ | 718 SC(turbo_escape_allocs_replaced, V8.TurboEscapeAllocsReplaced) \ |
719 SC(crankshaft_escape_allocs_replaced, V8.CrankshaftEscapeAllocsReplaced) \ | 719 SC(crankshaft_escape_allocs_replaced, V8.CrankshaftEscapeAllocsReplaced) \ |
720 SC(turbo_escape_loads_replaced, V8.TurboEscapeLoadsReplaced) \ | 720 SC(turbo_escape_loads_replaced, V8.TurboEscapeLoadsReplaced) \ |
721 SC(crankshaft_escape_loads_replaced, V8.CrankshaftEscapeLoadsReplaced) | 721 SC(crankshaft_escape_loads_replaced, V8.CrankshaftEscapeLoadsReplaced) \ |
722 | 722 /* Total code size (including metadata) of baseline code or bytecode. */ \ |
| 723 SC(total_baseline_code_size, V8.TotalBaselineCodeSize) \ |
| 724 /* Total count of functions compiled using the baseline compiler. */ \ |
| 725 SC(total_baseline_compile_count, V8.TotalBaselineCompileCount) |
723 | 726 |
724 // This file contains all the v8 counters that are in use. | 727 // This file contains all the v8 counters that are in use. |
725 class Counters { | 728 class Counters { |
726 public: | 729 public: |
727 #define HR(name, caption, min, max, num_buckets) \ | 730 #define HR(name, caption, min, max, num_buckets) \ |
728 Histogram* name() { return &name##_; } | 731 Histogram* name() { return &name##_; } |
729 HISTOGRAM_RANGE_LIST(HR) | 732 HISTOGRAM_RANGE_LIST(HR) |
730 #undef HR | 733 #undef HR |
731 | 734 |
732 #define HT(name, caption, max, res) \ | 735 #define HT(name, caption, max, res) \ |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 899 |
897 explicit Counters(Isolate* isolate); | 900 explicit Counters(Isolate* isolate); |
898 | 901 |
899 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 902 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
900 }; | 903 }; |
901 | 904 |
902 } // namespace internal | 905 } // namespace internal |
903 } // namespace v8 | 906 } // namespace v8 |
904 | 907 |
905 #endif // V8_COUNTERS_H_ | 908 #endif // V8_COUNTERS_H_ |
OLD | NEW |