Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/v8-counters.h

Issue 660095: Merge revision 3813 to 3930 from bleeding_edge to partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/utils.cc ('k') | src/v8natives.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 /* Amount of source code compiled with the old codegen. */ \ 97 /* Amount of source code compiled with the old codegen. */ \
98 SC(total_old_codegen_source_size, V8.TotalOldCodegenSourceSize) \ 98 SC(total_old_codegen_source_size, V8.TotalOldCodegenSourceSize) \
99 /* Amount of source code compiled with the full codegen. */ \ 99 /* Amount of source code compiled with the full codegen. */ \
100 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \ 100 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize) \
101 /* Number of contexts created from scratch. */ \ 101 /* Number of contexts created from scratch. */ \
102 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \ 102 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \
103 /* Number of contexts created by partial snapshot. */ \ 103 /* Number of contexts created by partial snapshot. */ \
104 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot) 104 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot)
105 105
106 106
107 #define STATS_COUNTER_LIST_2(SC) \
108 /* Number of code stubs. */ \
109 SC(code_stubs, V8.CodeStubs) \
110 /* Amount of stub code. */ \
111 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \
112 /* Amount of (JS) compiled code. */ \
113 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \
114 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \
115 SC(gc_compactor_caused_by_promoted_data, \
116 V8.GCCompactorCausedByPromotedData) \
117 SC(gc_compactor_caused_by_oldspace_exhaustion, \
118 V8.GCCompactorCausedByOldspaceExhaustion) \
119 SC(gc_compactor_caused_by_weak_handles, \
120 V8.GCCompactorCausedByWeakHandles) \
121 SC(gc_last_resort_from_js, V8.GCLastResortFromJS) \
122 SC(gc_last_resort_from_handles, V8.GCLastResortFromHandles) \
123 /* How is the generic keyed-load stub used? */ \
124 SC(keyed_load_generic_smi, V8.KeyedLoadGenericSmi) \
125 SC(keyed_load_generic_symbol, V8.KeyedLoadGenericSymbol) \
126 SC(keyed_load_generic_slow, V8.KeyedLoadGenericSlow) \
127 SC(keyed_load_external_array_slow, V8.KeyedLoadExternalArraySlow) \
128 /* Count how much the monomorphic keyed-load stubs are hit. */ \
129 SC(keyed_load_function_prototype, V8.KeyedLoadFunctionPrototype) \
130 SC(keyed_load_string_length, V8.KeyedLoadStringLength) \
131 SC(keyed_load_array_length, V8.KeyedLoadArrayLength) \
132 SC(keyed_load_constant_function, V8.KeyedLoadConstantFunction) \
133 SC(keyed_load_field, V8.KeyedLoadField) \
134 SC(keyed_load_callback, V8.KeyedLoadCallback) \
135 SC(keyed_load_interceptor, V8.KeyedLoadInterceptor) \
136 SC(keyed_load_inline, V8.KeyedLoadInline) \
137 SC(keyed_load_inline_miss, V8.KeyedLoadInlineMiss) \
138 SC(named_load_inline, V8.NamedLoadInline) \
139 SC(named_load_inline_miss, V8.NamedLoadInlineMiss) \
140 SC(named_load_global_inline, V8.NamedLoadGlobalInline) \
141 SC(named_load_global_inline_miss, V8.NamedLoadGlobalInlineMiss) \
142 SC(keyed_store_field, V8.KeyedStoreField) \
143 SC(keyed_store_inline, V8.KeyedStoreInline) \
144 SC(keyed_store_inline_miss, V8.KeyedStoreInlineMiss) \
145 SC(named_store_global_inline, V8.NamedStoreGlobalInline) \
146 SC(named_store_global_inline_miss, V8.NamedStoreGlobalInlineMiss) \
147 SC(call_const, V8.CallConst) \
148 SC(call_const_fast_api, V8.CallConstFastApi) \
149 SC(call_const_interceptor, V8.CallConstInterceptor) \
150 SC(call_const_interceptor_fast_api, V8.CallConstInterceptorFastApi) \
151 SC(call_global_inline, V8.CallGlobalInline) \
152 SC(call_global_inline_miss, V8.CallGlobalInlineMiss) \
153 SC(constructed_objects, V8.ConstructedObjects) \
154 SC(constructed_objects_runtime, V8.ConstructedObjectsRuntime) \
155 SC(constructed_objects_stub, V8.ConstructedObjectsStub) \
156 SC(array_function_runtime, V8.ArrayFunctionRuntime) \
157 SC(array_function_native, V8.ArrayFunctionNative) \
158 SC(for_in, V8.ForIn) \
159 SC(enum_cache_hits, V8.EnumCacheHits) \
160 SC(enum_cache_misses, V8.EnumCacheMisses) \
161 SC(reloc_info_count, V8.RelocInfoCount) \
162 SC(reloc_info_size, V8.RelocInfoSize) \
163 SC(zone_segment_bytes, V8.ZoneSegmentBytes) \
164 SC(compute_entry_frame, V8.ComputeEntryFrame) \
165 SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls) \
166 SC(generic_binary_stub_calls_regs, V8.GenericBinaryStubCallsRegs) \
167 SC(string_add_runtime, V8.StringAddRuntime) \
168 SC(string_add_native, V8.StringAddNative) \
169 SC(sub_string_runtime, V8.SubStringRuntime) \
170 SC(sub_string_native, V8.SubStringNative) \
171 SC(string_compare_native, V8.StringCompareNative) \
172 SC(string_compare_runtime, V8.StringCompareRuntime) \
173 SC(regexp_entry_runtime, V8.RegExpEntryRuntime) \
174 SC(regexp_entry_native, V8.RegExpEntryNative) \
175 SC(number_to_string_native, V8.NumberToStringNative) \
176 SC(number_to_string_runtime, V8.NumberToStringRuntime) \
177 SC(math_abs, V8.MathAbs) \
178 SC(math_acos, V8.MathAcos) \
179 SC(math_asin, V8.MathAsin) \
180 SC(math_atan, V8.MathAtan) \
181 SC(math_atan2, V8.MathAtan2) \
182 SC(math_ceil, V8.MathCeil) \
183 SC(math_cos, V8.MathCos) \
184 SC(math_exp, V8.MathExp) \
185 SC(math_floor, V8.MathFloor) \
186 SC(math_log, V8.MathLog) \
187 SC(math_pow, V8.MathPow) \
188 SC(math_round, V8.MathRound) \
189 SC(math_sin, V8.MathSin) \
190 SC(math_sqrt, V8.MathSqrt) \
191 SC(math_tan, V8.MathTan) \
192 SC(transcendental_cache_hit, V8.TranscendentalCacheHit) \
193 SC(transcendental_cache_miss, V8.TranscendentalCacheMiss)
107 194
108 #define STATS_COUNTER_LIST_2(SC) \
109 /* Number of code stubs. */ \
110 SC(code_stubs, V8.CodeStubs) \
111 /* Amount of stub code. */ \
112 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \
113 /* Amount of (JS) compiled code. */ \
114 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \
115 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \
116 SC(gc_compactor_caused_by_promoted_data, \
117 V8.GCCompactorCausedByPromotedData) \
118 SC(gc_compactor_caused_by_oldspace_exhaustion, \
119 V8.GCCompactorCausedByOldspaceExhaustion) \
120 SC(gc_compactor_caused_by_weak_handles, \
121 V8.GCCompactorCausedByWeakHandles) \
122 SC(gc_last_resort_from_js, V8.GCLastResortFromJS) \
123 SC(gc_last_resort_from_handles, V8.GCLastResortFromHandles) \
124 /* How is the generic keyed-load stub used? */ \
125 SC(keyed_load_generic_smi, V8.KeyedLoadGenericSmi) \
126 SC(keyed_load_generic_symbol, V8.KeyedLoadGenericSymbol) \
127 SC(keyed_load_generic_slow, V8.KeyedLoadGenericSlow) \
128 SC(keyed_load_external_array_slow, V8.KeyedLoadExternalArraySlow) \
129 /* Count how much the monomorphic keyed-load stubs are hit. */ \
130 SC(keyed_load_function_prototype, V8.KeyedLoadFunctionPrototype) \
131 SC(keyed_load_string_length, V8.KeyedLoadStringLength) \
132 SC(keyed_load_array_length, V8.KeyedLoadArrayLength) \
133 SC(keyed_load_constant_function, V8.KeyedLoadConstantFunction) \
134 SC(keyed_load_field, V8.KeyedLoadField) \
135 SC(keyed_load_callback, V8.KeyedLoadCallback) \
136 SC(keyed_load_interceptor, V8.KeyedLoadInterceptor) \
137 SC(keyed_load_inline, V8.KeyedLoadInline) \
138 SC(keyed_load_inline_miss, V8.KeyedLoadInlineMiss) \
139 SC(named_load_inline, V8.NamedLoadInline) \
140 SC(named_load_inline_miss, V8.NamedLoadInlineMiss) \
141 SC(named_load_global_inline, V8.NamedLoadGlobalInline) \
142 SC(named_load_global_inline_miss, V8.NamedLoadGlobalInlineMiss) \
143 SC(keyed_store_field, V8.KeyedStoreField) \
144 SC(keyed_store_inline, V8.KeyedStoreInline) \
145 SC(keyed_store_inline_miss, V8.KeyedStoreInlineMiss) \
146 SC(named_store_global_inline, V8.NamedStoreGlobalInline) \
147 SC(named_store_global_inline_miss, V8.NamedStoreGlobalInlineMiss) \
148 SC(call_global_inline, V8.CallGlobalInline) \
149 SC(call_global_inline_miss, V8.CallGlobalInlineMiss) \
150 SC(constructed_objects, V8.ConstructedObjects) \
151 SC(constructed_objects_runtime, V8.ConstructedObjectsRuntime) \
152 SC(constructed_objects_stub, V8.ConstructedObjectsStub) \
153 SC(array_function_runtime, V8.ArrayFunctionRuntime) \
154 SC(array_function_native, V8.ArrayFunctionNative) \
155 SC(for_in, V8.ForIn) \
156 SC(enum_cache_hits, V8.EnumCacheHits) \
157 SC(enum_cache_misses, V8.EnumCacheMisses) \
158 SC(reloc_info_count, V8.RelocInfoCount) \
159 SC(reloc_info_size, V8.RelocInfoSize) \
160 SC(zone_segment_bytes, V8.ZoneSegmentBytes) \
161 SC(compute_entry_frame, V8.ComputeEntryFrame) \
162 SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls) \
163 SC(generic_binary_stub_calls_regs, V8.GenericBinaryStubCallsRegs) \
164 SC(string_add_runtime, V8.StringAddRuntime) \
165 SC(string_add_native, V8.StringAddNative) \
166 SC(sub_string_runtime, V8.SubStringRuntime) \
167 SC(sub_string_native, V8.SubStringNative) \
168 SC(string_compare_native, V8.StringCompareNative) \
169 SC(string_compare_runtime, V8.StringCompareRuntime) \
170 SC(regexp_entry_runtime, V8.RegExpEntryRuntime) \
171 SC(regexp_entry_native, V8.RegExpEntryNative)
172 195
173 // This file contains all the v8 counters that are in use. 196 // This file contains all the v8 counters that are in use.
174 class Counters : AllStatic { 197 class Counters : AllStatic {
175 public: 198 public:
176 #define HT(name, caption) \ 199 #define HT(name, caption) \
177 static HistogramTimer name; 200 static HistogramTimer name;
178 HISTOGRAM_TIMER_LIST(HT) 201 HISTOGRAM_TIMER_LIST(HT)
179 #undef HT 202 #undef HT
180 203
181 #define SC(name, caption) \ 204 #define SC(name, caption) \
(...skipping 16 matching lines...) Expand all
198 stats_counter_count 221 stats_counter_count
199 }; 222 };
200 223
201 // Sliding state window counters. 224 // Sliding state window counters.
202 static StatsCounter state_counters[]; 225 static StatsCounter state_counters[];
203 }; 226 };
204 227
205 } } // namespace v8::internal 228 } } // namespace v8::internal
206 229
207 #endif // V8_V8_COUNTERS_H_ 230 #endif // V8_V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/utils.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698