| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 93   /* Amount of source code skipped over using preparsing. */          \ | 93   /* Amount of source code skipped over using preparsing. */          \ | 
| 94   SC(total_preparse_skipped, V8.TotalPreparseSkipped)                 \ | 94   SC(total_preparse_skipped, V8.TotalPreparseSkipped)                 \ | 
| 95   /* Amount of compiled source code. */                               \ | 95   /* Amount of compiled source code. */                               \ | 
| 96   SC(total_compile_size, V8.TotalCompileSize)                         \ | 96   SC(total_compile_size, V8.TotalCompileSize)                         \ | 
| 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 | 101 | 
| 102 | 102 | 
| 103 #define STATS_COUNTER_LIST_2(SC)                                    \ | 103 #define STATS_COUNTER_LIST_2(SC)                                      \ | 
| 104   /* Number of code stubs. */                                       \ | 104   /* Number of code stubs. */                                         \ | 
| 105   SC(code_stubs, V8.CodeStubs)                                      \ | 105   SC(code_stubs, V8.CodeStubs)                                        \ | 
| 106   /* Amount of stub code. */                                        \ | 106   /* Amount of stub code. */                                          \ | 
| 107   SC(total_stubs_code_size, V8.TotalStubsCodeSize)                  \ | 107   SC(total_stubs_code_size, V8.TotalStubsCodeSize)                    \ | 
| 108   /* Amount of (JS) compiled code. */                               \ | 108   /* Amount of (JS) compiled code. */                                 \ | 
| 109   SC(total_compiled_code_size, V8.TotalCompiledCodeSize)            \ | 109   SC(total_compiled_code_size, V8.TotalCompiledCodeSize)              \ | 
| 110   SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ | 110   SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest)   \ | 
| 111   SC(gc_compactor_caused_by_promoted_data,                          \ | 111   SC(gc_compactor_caused_by_promoted_data,                            \ | 
| 112      V8.GCCompactorCausedByPromotedData)                            \ | 112      V8.GCCompactorCausedByPromotedData)                              \ | 
| 113   SC(gc_compactor_caused_by_oldspace_exhaustion,                    \ | 113   SC(gc_compactor_caused_by_oldspace_exhaustion,                      \ | 
| 114      V8.GCCompactorCausedByOldspaceExhaustion)                      \ | 114      V8.GCCompactorCausedByOldspaceExhaustion)                        \ | 
| 115   SC(gc_compactor_caused_by_weak_handles,                           \ | 115   SC(gc_compactor_caused_by_weak_handles,                             \ | 
| 116      V8.GCCompactorCausedByWeakHandles)                             \ | 116      V8.GCCompactorCausedByWeakHandles)                               \ | 
| 117   SC(gc_last_resort_from_js, V8.GCLastResortFromJS)                 \ | 117   SC(gc_last_resort_from_js, V8.GCLastResortFromJS)                   \ | 
| 118   SC(gc_last_resort_from_handles, V8.GCLastResortFromHandles)       \ | 118   SC(gc_last_resort_from_handles, V8.GCLastResortFromHandles)         \ | 
| 119   /* How is the generic keyed-load stub used? */                    \ | 119   /* How is the generic keyed-load stub used? */                      \ | 
| 120   SC(keyed_load_generic_smi, V8.KeyedLoadGenericSmi)                \ | 120   SC(keyed_load_generic_smi, V8.KeyedLoadGenericSmi)                  \ | 
| 121   SC(keyed_load_generic_symbol, V8.KeyedLoadGenericSymbol)          \ | 121   SC(keyed_load_generic_symbol, V8.KeyedLoadGenericSymbol)            \ | 
| 122   SC(keyed_load_generic_slow, V8.KeyedLoadGenericSlow)              \ | 122   SC(keyed_load_generic_slow, V8.KeyedLoadGenericSlow)                \ | 
| 123   SC(keyed_load_external_array_slow, V8.KeyedLoadExternalArraySlow) \ | 123   SC(keyed_load_external_array_slow, V8.KeyedLoadExternalArraySlow)   \ | 
| 124   /* Count how much the monomorphic keyed-load stubs are hit. */    \ | 124   /* Count how much the monomorphic keyed-load stubs are hit. */      \ | 
| 125   SC(keyed_load_function_prototype, V8.KeyedLoadFunctionPrototype)  \ | 125   SC(keyed_load_function_prototype, V8.KeyedLoadFunctionPrototype)    \ | 
| 126   SC(keyed_load_string_length, V8.KeyedLoadStringLength)            \ | 126   SC(keyed_load_string_length, V8.KeyedLoadStringLength)              \ | 
| 127   SC(keyed_load_array_length, V8.KeyedLoadArrayLength)              \ | 127   SC(keyed_load_array_length, V8.KeyedLoadArrayLength)                \ | 
| 128   SC(keyed_load_constant_function, V8.KeyedLoadConstantFunction)    \ | 128   SC(keyed_load_constant_function, V8.KeyedLoadConstantFunction)      \ | 
| 129   SC(keyed_load_field, V8.KeyedLoadField)                           \ | 129   SC(keyed_load_field, V8.KeyedLoadField)                             \ | 
| 130   SC(keyed_load_callback, V8.KeyedLoadCallback)                     \ | 130   SC(keyed_load_callback, V8.KeyedLoadCallback)                       \ | 
| 131   SC(keyed_load_interceptor, V8.KeyedLoadInterceptor)               \ | 131   SC(keyed_load_interceptor, V8.KeyedLoadInterceptor)                 \ | 
| 132   SC(keyed_load_inline, V8.KeyedLoadInline)                         \ | 132   SC(keyed_load_inline, V8.KeyedLoadInline)                           \ | 
| 133   SC(keyed_load_inline_miss, V8.KeyedLoadInlineMiss)                \ | 133   SC(keyed_load_inline_miss, V8.KeyedLoadInlineMiss)                  \ | 
| 134   SC(named_load_inline, V8.NamedLoadInline)                         \ | 134   SC(named_load_inline, V8.NamedLoadInline)                           \ | 
| 135   SC(named_load_inline_miss, V8.NamedLoadInlineMiss)                \ | 135   SC(named_load_inline_miss, V8.NamedLoadInlineMiss)                  \ | 
| 136   SC(named_load_global_inline, V8.NamedLoadGlobalInline)            \ | 136   SC(named_load_global_inline, V8.NamedLoadGlobalInline)              \ | 
| 137   SC(named_load_global_inline_miss, V8.NamedLoadGlobalInlineMiss)   \ | 137   SC(named_load_global_inline_miss, V8.NamedLoadGlobalInlineMiss)     \ | 
| 138   SC(keyed_store_field, V8.KeyedStoreField)                         \ | 138   SC(keyed_store_field, V8.KeyedStoreField)                           \ | 
| 139   SC(keyed_store_inline, V8.KeyedStoreInline)                       \ | 139   SC(keyed_store_inline, V8.KeyedStoreInline)                         \ | 
| 140   SC(keyed_store_inline_miss, V8.KeyedStoreInlineMiss)              \ | 140   SC(keyed_store_inline_miss, V8.KeyedStoreInlineMiss)                \ | 
| 141   SC(named_store_global_inline, V8.NamedStoreGlobalInline)          \ | 141   SC(named_store_global_inline, V8.NamedStoreGlobalInline)            \ | 
| 142   SC(named_store_global_inline_miss, V8.NamedStoreGlobalInlineMiss) \ | 142   SC(named_store_global_inline_miss, V8.NamedStoreGlobalInlineMiss)   \ | 
| 143   SC(call_global_inline, V8.CallGlobalInline)                       \ | 143   SC(call_const, V8.CallConst)                                        \ | 
| 144   SC(call_global_inline_miss, V8.CallGlobalInlineMiss)              \ | 144   SC(call_const_fast_api, V8.CallConstFastApi)                        \ | 
| 145   SC(constructed_objects, V8.ConstructedObjects)                    \ | 145   SC(call_const_interceptor, V8.CallConstInterceptor)                 \ | 
| 146   SC(constructed_objects_runtime, V8.ConstructedObjectsRuntime)     \ | 146   SC(call_const_interceptor_fast_api, V8.CallConstInterceptorFastApi) \ | 
| 147   SC(constructed_objects_stub, V8.ConstructedObjectsStub)           \ | 147   SC(call_global_inline, V8.CallGlobalInline)                         \ | 
| 148   SC(array_function_runtime, V8.ArrayFunctionRuntime)               \ | 148   SC(call_global_inline_miss, V8.CallGlobalInlineMiss)                \ | 
| 149   SC(array_function_native, V8.ArrayFunctionNative)                 \ | 149   SC(constructed_objects, V8.ConstructedObjects)                      \ | 
| 150   SC(for_in, V8.ForIn)                                              \ | 150   SC(constructed_objects_runtime, V8.ConstructedObjectsRuntime)       \ | 
| 151   SC(enum_cache_hits, V8.EnumCacheHits)                             \ | 151   SC(constructed_objects_stub, V8.ConstructedObjectsStub)             \ | 
| 152   SC(enum_cache_misses, V8.EnumCacheMisses)                         \ | 152   SC(array_function_runtime, V8.ArrayFunctionRuntime)                 \ | 
| 153   SC(reloc_info_count, V8.RelocInfoCount)                           \ | 153   SC(array_function_native, V8.ArrayFunctionNative)                   \ | 
| 154   SC(reloc_info_size, V8.RelocInfoSize)                             \ | 154   SC(for_in, V8.ForIn)                                                \ | 
| 155   SC(zone_segment_bytes, V8.ZoneSegmentBytes)                       \ | 155   SC(enum_cache_hits, V8.EnumCacheHits)                               \ | 
| 156   SC(compute_entry_frame, V8.ComputeEntryFrame)                     \ | 156   SC(enum_cache_misses, V8.EnumCacheMisses)                           \ | 
| 157   SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls)          \ | 157   SC(reloc_info_count, V8.RelocInfoCount)                             \ | 
| 158   SC(generic_binary_stub_calls_regs, V8.GenericBinaryStubCallsRegs) \ | 158   SC(reloc_info_size, V8.RelocInfoSize)                               \ | 
| 159   SC(string_add_runtime, V8.StringAddRuntime)                       \ | 159   SC(zone_segment_bytes, V8.ZoneSegmentBytes)                         \ | 
| 160   SC(string_add_native, V8.StringAddNative)                         \ | 160   SC(compute_entry_frame, V8.ComputeEntryFrame)                       \ | 
| 161   SC(sub_string_runtime, V8.SubStringRuntime)                       \ | 161   SC(generic_binary_stub_calls, V8.GenericBinaryStubCalls)            \ | 
| 162   SC(sub_string_native, V8.SubStringNative)                         \ | 162   SC(generic_binary_stub_calls_regs, V8.GenericBinaryStubCallsRegs)   \ | 
| 163   SC(string_compare_native, V8.StringCompareNative)                 \ | 163   SC(string_add_runtime, V8.StringAddRuntime)                         \ | 
| 164   SC(string_compare_runtime, V8.StringCompareRuntime)               \ | 164   SC(string_add_native, V8.StringAddNative)                           \ | 
| 165   SC(regexp_entry_runtime, V8.RegExpEntryRuntime)                   \ | 165   SC(sub_string_runtime, V8.SubStringRuntime)                         \ | 
|  | 166   SC(sub_string_native, V8.SubStringNative)                           \ | 
|  | 167   SC(string_compare_native, V8.StringCompareNative)                   \ | 
|  | 168   SC(string_compare_runtime, V8.StringCompareRuntime)                 \ | 
|  | 169   SC(regexp_entry_runtime, V8.RegExpEntryRuntime)                     \ | 
| 166   SC(regexp_entry_native, V8.RegExpEntryNative) | 170   SC(regexp_entry_native, V8.RegExpEntryNative) | 
| 167 | 171 | 
| 168 // This file contains all the v8 counters that are in use. | 172 // This file contains all the v8 counters that are in use. | 
| 169 class Counters : AllStatic { | 173 class Counters : AllStatic { | 
| 170  public: | 174  public: | 
| 171 #define HT(name, caption) \ | 175 #define HT(name, caption) \ | 
| 172   static HistogramTimer name; | 176   static HistogramTimer name; | 
| 173   HISTOGRAM_TIMER_LIST(HT) | 177   HISTOGRAM_TIMER_LIST(HT) | 
| 174 #undef HT | 178 #undef HT | 
| 175 | 179 | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 193     stats_counter_count | 197     stats_counter_count | 
| 194   }; | 198   }; | 
| 195 | 199 | 
| 196   // Sliding state window counters. | 200   // Sliding state window counters. | 
| 197   static StatsCounter state_counters[]; | 201   static StatsCounter state_counters[]; | 
| 198 }; | 202 }; | 
| 199 | 203 | 
| 200 } }  // namespace v8::internal | 204 } }  // namespace v8::internal | 
| 201 | 205 | 
| 202 #endif  // V8_V8_COUNTERS_H_ | 206 #endif  // V8_V8_COUNTERS_H_ | 
| OLD | NEW | 
|---|