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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 SC(old_space_bytes_committed, V8.MemoryOldSpaceBytesCommitted) \ | 707 SC(old_space_bytes_committed, V8.MemoryOldSpaceBytesCommitted) \ |
708 SC(old_space_bytes_used, V8.MemoryOldSpaceBytesUsed) \ | 708 SC(old_space_bytes_used, V8.MemoryOldSpaceBytesUsed) \ |
709 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \ | 709 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \ |
710 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \ | 710 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \ |
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) \ |
| 719 SC(crankshaft_escape_allocs_replaced, V8.CrankshaftEscapeAllocsReplaced) \ |
| 720 SC(turbo_escape_loads_replaced, V8.TurboEscapeLoadsReplaced) \ |
| 721 SC(crankshaft_escape_loads_replaced, V8.CrankshaftEscapeLoadsReplaced) |
718 | 722 |
719 | 723 |
720 // This file contains all the v8 counters that are in use. | 724 // This file contains all the v8 counters that are in use. |
721 class Counters { | 725 class Counters { |
722 public: | 726 public: |
723 #define HR(name, caption, min, max, num_buckets) \ | 727 #define HR(name, caption, min, max, num_buckets) \ |
724 Histogram* name() { return &name##_; } | 728 Histogram* name() { return &name##_; } |
725 HISTOGRAM_RANGE_LIST(HR) | 729 HISTOGRAM_RANGE_LIST(HR) |
726 #undef HR | 730 #undef HR |
727 | 731 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 | 896 |
893 explicit Counters(Isolate* isolate); | 897 explicit Counters(Isolate* isolate); |
894 | 898 |
895 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); | 899 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); |
896 }; | 900 }; |
897 | 901 |
898 } // namespace internal | 902 } // namespace internal |
899 } // namespace v8 | 903 } // namespace v8 |
900 | 904 |
901 #endif // V8_COUNTERS_H_ | 905 #endif // V8_COUNTERS_H_ |
OLD | NEW |