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

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

Issue 552184: Add counters for the different code generators. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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/full-codegen.cc ('k') | no next file » | 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 HT(ast_optimization, V8.ASTOptimization) \ 53 HT(ast_optimization, V8.ASTOptimization) \
54 HT(code_generation, V8.CodeGeneration) \ 54 HT(code_generation, V8.CodeGeneration) \
55 HT(deferred_code_generation, V8.DeferredCodeGeneration) 55 HT(deferred_code_generation, V8.DeferredCodeGeneration)
56 56
57 57
58 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC 58 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC
59 // Intellisense to crash. It was broken into two macros (each of length 40 59 // Intellisense to crash. It was broken into two macros (each of length 40
60 // lines) rather than one macro (of length about 80 lines) to work around 60 // lines) rather than one macro (of length about 80 lines) to work around
61 // this problem. Please avoid using recursive macros of this length when 61 // this problem. Please avoid using recursive macros of this length when
62 // possible. 62 // possible.
63 #define STATS_COUNTER_LIST_1(SC) \ 63 #define STATS_COUNTER_LIST_1(SC) \
64 /* Global Handle Count*/ \ 64 /* Global Handle Count*/ \
65 SC(global_handles, V8.GlobalHandles) \ 65 SC(global_handles, V8.GlobalHandles) \
66 /* Mallocs from PCRE */ \ 66 /* Mallocs from PCRE */ \
67 SC(pcre_mallocs, V8.PcreMallocCount) \ 67 SC(pcre_mallocs, V8.PcreMallocCount) \
68 /* OS Memory allocated */ \ 68 /* OS Memory allocated */ \
69 SC(memory_allocated, V8.OsMemoryAllocated) \ 69 SC(memory_allocated, V8.OsMemoryAllocated) \
70 SC(props_to_dictionary, V8.ObjectPropertiesToDictionary) \ 70 SC(props_to_dictionary, V8.ObjectPropertiesToDictionary) \
71 SC(elements_to_dictionary, V8.ObjectElementsToDictionary) \ 71 SC(elements_to_dictionary, V8.ObjectElementsToDictionary) \
72 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ 72 SC(alive_after_last_gc, V8.AliveAfterLastGC) \
73 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ 73 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \
74 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ 74 SC(objs_since_last_full, V8.ObjsSinceLastFull) \
75 SC(symbol_table_capacity, V8.SymbolTableCapacity) \ 75 SC(symbol_table_capacity, V8.SymbolTableCapacity) \
76 SC(number_of_symbols, V8.NumberOfSymbols) \ 76 SC(number_of_symbols, V8.NumberOfSymbols) \
77 SC(script_wrappers, V8.ScriptWrappers) \ 77 SC(script_wrappers, V8.ScriptWrappers) \
78 SC(call_initialize_stubs, V8.CallInitializeStubs) \ 78 SC(call_initialize_stubs, V8.CallInitializeStubs) \
79 SC(call_premonomorphic_stubs, V8.CallPreMonomorphicStubs) \ 79 SC(call_premonomorphic_stubs, V8.CallPreMonomorphicStubs) \
80 SC(call_normal_stubs, V8.CallNormalStubs) \ 80 SC(call_normal_stubs, V8.CallNormalStubs) \
81 SC(call_megamorphic_stubs, V8.CallMegamorphicStubs) \ 81 SC(call_megamorphic_stubs, V8.CallMegamorphicStubs) \
82 SC(arguments_adaptors, V8.ArgumentsAdaptors) \ 82 SC(arguments_adaptors, V8.ArgumentsAdaptors) \
83 SC(compilation_cache_hits, V8.CompilationCacheHits) \ 83 SC(compilation_cache_hits, V8.CompilationCacheHits) \
84 SC(compilation_cache_misses, V8.CompilationCacheMisses) \ 84 SC(compilation_cache_misses, V8.CompilationCacheMisses) \
85 SC(regexp_cache_hits, V8.RegExpCacheHits) \ 85 SC(regexp_cache_hits, V8.RegExpCacheHits) \
86 SC(regexp_cache_misses, V8.RegExpCacheMisses) \ 86 SC(regexp_cache_misses, V8.RegExpCacheMisses) \
87 /* Amount of evaled source code. */ \ 87 /* Amount of evaled source code. */ \
88 SC(total_eval_size, V8.TotalEvalSize) \ 88 SC(total_eval_size, V8.TotalEvalSize) \
89 /* Amount of loaded source code. */ \ 89 /* Amount of loaded source code. */ \
90 SC(total_load_size, V8.TotalLoadSize) \ 90 SC(total_load_size, V8.TotalLoadSize) \
91 /* Amount of parsed source code. */ \ 91 /* Amount of parsed source code. */ \
92 SC(total_parse_size, V8.TotalParseSize) \ 92 SC(total_parse_size, V8.TotalParseSize) \
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. */ \
98 SC(total_old_codegen_source_size, V8.TotalOldCodegenSourceSize) \
99 /* Amount of source code compiled with the full codegen. */ \
100 SC(total_full_codegen_source_size, V8.TotalFullCodegenSourceSize)
97 101
98 102
99 #define STATS_COUNTER_LIST_2(SC) \ 103 #define STATS_COUNTER_LIST_2(SC) \
100 /* Number of code stubs. */ \ 104 /* Number of code stubs. */ \
101 SC(code_stubs, V8.CodeStubs) \ 105 SC(code_stubs, V8.CodeStubs) \
102 /* Amount of stub code. */ \ 106 /* Amount of stub code. */ \
103 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ 107 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \
104 /* Amount of (JS) compiled code. */ \ 108 /* Amount of (JS) compiled code. */ \
105 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ 109 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \
106 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ 110 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 stats_counter_count 193 stats_counter_count
190 }; 194 };
191 195
192 // Sliding state window counters. 196 // Sliding state window counters.
193 static StatsCounter state_counters[]; 197 static StatsCounter state_counters[];
194 }; 198 };
195 199
196 } } // namespace v8::internal 200 } } // namespace v8::internal
197 201
198 #endif // V8_V8_COUNTERS_H_ 202 #endif // V8_V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698