| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 SC(keyed_load_array_length, V8.KeyedLoadArrayLength) \ | 111 SC(keyed_load_array_length, V8.KeyedLoadArrayLength) \ |
| 112 SC(keyed_load_constant_function, V8.KeyedLoadConstantFunction) \ | 112 SC(keyed_load_constant_function, V8.KeyedLoadConstantFunction) \ |
| 113 SC(keyed_load_field, V8.KeyedLoadField) \ | 113 SC(keyed_load_field, V8.KeyedLoadField) \ |
| 114 SC(keyed_load_callback, V8.KeyedLoadCallback) \ | 114 SC(keyed_load_callback, V8.KeyedLoadCallback) \ |
| 115 SC(keyed_load_interceptor, V8.KeyedLoadInterceptor) \ | 115 SC(keyed_load_interceptor, V8.KeyedLoadInterceptor) \ |
| 116 SC(keyed_store_field, V8.KeyedStoreField) \ | 116 SC(keyed_store_field, V8.KeyedStoreField) \ |
| 117 SC(for_in, V8.ForIn) \ | 117 SC(for_in, V8.ForIn) \ |
| 118 SC(enum_cache_hits, V8.EnumCacheHits) \ | 118 SC(enum_cache_hits, V8.EnumCacheHits) \ |
| 119 SC(enum_cache_misses, V8.EnumCacheMisses) \ | 119 SC(enum_cache_misses, V8.EnumCacheMisses) \ |
| 120 SC(reloc_info_count, V8.RelocInfoCount) \ | 120 SC(reloc_info_count, V8.RelocInfoCount) \ |
| 121 SC(reloc_info_size, V8.RelocInfoSize) | 121 SC(reloc_info_size, V8.RelocInfoSize) \ |
| 122 SC(zone_segment_bytes, V8.ZoneSegmentBytes) |
| 122 | 123 |
| 123 | 124 |
| 124 // This file contains all the v8 counters that are in use. | 125 // This file contains all the v8 counters that are in use. |
| 125 class Counters : AllStatic { | 126 class Counters : AllStatic { |
| 126 public: | 127 public: |
| 127 #define SR(name, caption) \ | 128 #define SR(name, caption) \ |
| 128 static StatsRate name; | 129 static StatsRate name; |
| 129 STATS_RATE_LIST(SR) | 130 STATS_RATE_LIST(SR) |
| 130 #undef SR | 131 #undef SR |
| 131 | 132 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 149 stats_counter_count | 150 stats_counter_count |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 // Sliding state window counters. | 153 // Sliding state window counters. |
| 153 static StatsCounter state_counters[]; | 154 static StatsCounter state_counters[]; |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 } } // namespace v8::internal | 157 } } // namespace v8::internal |
| 157 | 158 |
| 158 #endif // V8_COUNTERS_H_ | 159 #endif // V8_COUNTERS_H_ |
| OLD | NEW |