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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls) \ | 161 SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls) \ |
162 SC(generic_binary_stub_calls_regs, V8.GenericBinaryStubCallsRegs) \ | 162 SC(generic_binary_stub_calls_regs, V8.GenericBinaryStubCallsRegs) \ |
163 SC(string_add_runtime, V8.StringAddRuntime) \ | 163 SC(string_add_runtime, V8.StringAddRuntime) \ |
164 SC(string_add_native, V8.StringAddNative) \ | 164 SC(string_add_native, V8.StringAddNative) \ |
165 SC(sub_string_runtime, V8.SubStringRuntime) \ | 165 SC(sub_string_runtime, V8.SubStringRuntime) \ |
166 SC(sub_string_native, V8.SubStringNative) \ | 166 SC(sub_string_native, V8.SubStringNative) \ |
167 SC(string_compare_native, V8.StringCompareNative) \ | 167 SC(string_compare_native, V8.StringCompareNative) \ |
168 SC(string_compare_runtime, V8.StringCompareRuntime) \ | 168 SC(string_compare_runtime, V8.StringCompareRuntime) \ |
169 SC(regexp_entry_runtime, V8.RegExpEntryRuntime) \ | 169 SC(regexp_entry_runtime, V8.RegExpEntryRuntime) \ |
170 SC(regexp_entry_native, V8.RegExpEntryNative) \ | 170 SC(regexp_entry_native, V8.RegExpEntryNative) \ |
171 SC(string_plus_smi_hit, V8.StringPlusSmiHit) \ | 171 SC(number_to_string_native, V8.NumberToStringNative) \ |
172 SC(string_plus_smi_miss, V8.StringPlusSmiMiss) | 172 SC(number_to_string_runtime, V8.NumberToStringRuntime) |
173 | 173 |
174 // This file contains all the v8 counters that are in use. | 174 // This file contains all the v8 counters that are in use. |
175 class Counters : AllStatic { | 175 class Counters : AllStatic { |
176 public: | 176 public: |
177 #define HT(name, caption) \ | 177 #define HT(name, caption) \ |
178 static HistogramTimer name; | 178 static HistogramTimer name; |
179 HISTOGRAM_TIMER_LIST(HT) | 179 HISTOGRAM_TIMER_LIST(HT) |
180 #undef HT | 180 #undef HT |
181 | 181 |
182 #define SC(name, caption) \ | 182 #define SC(name, caption) \ |
(...skipping 16 matching lines...) Expand all Loading... |
199 stats_counter_count | 199 stats_counter_count |
200 }; | 200 }; |
201 | 201 |
202 // Sliding state window counters. | 202 // Sliding state window counters. |
203 static StatsCounter state_counters[]; | 203 static StatsCounter state_counters[]; |
204 }; | 204 }; |
205 | 205 |
206 } } // namespace v8::internal | 206 } } // namespace v8::internal |
207 | 207 |
208 #endif // V8_V8_COUNTERS_H_ | 208 #endif // V8_V8_COUNTERS_H_ |
OLD | NEW |