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

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

Issue 1094014: Merge the partial_snapshots branch back into bleeding_edge. For... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. */ \ 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. */ \
102 SC(contexts_created_from_scratch, V8.ContextsCreatedFromScratch) \
103 /* Number of contexts created by partial snapshot. */ \
104 SC(contexts_created_by_snapshot, V8.ContextsCreatedBySnapshot)
101 105
102 106
103 #define STATS_COUNTER_LIST_2(SC) \ 107 #define STATS_COUNTER_LIST_2(SC) \
104 /* Number of code stubs. */ \ 108 /* Number of code stubs. */ \
105 SC(code_stubs, V8.CodeStubs) \ 109 SC(code_stubs, V8.CodeStubs) \
106 /* Amount of stub code. */ \ 110 /* Amount of stub code. */ \
107 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \ 111 SC(total_stubs_code_size, V8.TotalStubsCodeSize) \
108 /* Amount of (JS) compiled code. */ \ 112 /* Amount of (JS) compiled code. */ \
109 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \ 113 SC(total_compiled_code_size, V8.TotalCompiledCodeSize) \
110 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \ 114 SC(gc_compactor_caused_by_request, V8.GCCompactorCausedByRequest) \
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 SC(math_floor, V8.MathFloor) \ 184 SC(math_floor, V8.MathFloor) \
181 SC(math_log, V8.MathLog) \ 185 SC(math_log, V8.MathLog) \
182 SC(math_pow, V8.MathPow) \ 186 SC(math_pow, V8.MathPow) \
183 SC(math_round, V8.MathRound) \ 187 SC(math_round, V8.MathRound) \
184 SC(math_sin, V8.MathSin) \ 188 SC(math_sin, V8.MathSin) \
185 SC(math_sqrt, V8.MathSqrt) \ 189 SC(math_sqrt, V8.MathSqrt) \
186 SC(math_tan, V8.MathTan) \ 190 SC(math_tan, V8.MathTan) \
187 SC(transcendental_cache_hit, V8.TranscendentalCacheHit) \ 191 SC(transcendental_cache_hit, V8.TranscendentalCacheHit) \
188 SC(transcendental_cache_miss, V8.TranscendentalCacheMiss) 192 SC(transcendental_cache_miss, V8.TranscendentalCacheMiss)
189 193
194
190 // This file contains all the v8 counters that are in use. 195 // This file contains all the v8 counters that are in use.
191 class Counters : AllStatic { 196 class Counters : AllStatic {
192 public: 197 public:
193 #define HT(name, caption) \ 198 #define HT(name, caption) \
194 static HistogramTimer name; 199 static HistogramTimer name;
195 HISTOGRAM_TIMER_LIST(HT) 200 HISTOGRAM_TIMER_LIST(HT)
196 #undef HT 201 #undef HT
197 202
198 #define SC(name, caption) \ 203 #define SC(name, caption) \
199 static StatsCounter name; 204 static StatsCounter name;
(...skipping 15 matching lines...) Expand all
215 stats_counter_count 220 stats_counter_count
216 }; 221 };
217 222
218 // Sliding state window counters. 223 // Sliding state window counters.
219 static StatsCounter state_counters[]; 224 static StatsCounter state_counters[];
220 }; 225 };
221 226
222 } } // namespace v8::internal 227 } } // namespace v8::internal
223 228
224 #endif // V8_V8_COUNTERS_H_ 229 #endif // V8_V8_COUNTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698