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

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

Issue 10657022: Expose more detailed memory statistics (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 8 years, 5 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/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 SC(math_sin, V8.MathSin) \ 239 SC(math_sin, V8.MathSin) \
240 SC(math_sqrt, V8.MathSqrt) \ 240 SC(math_sqrt, V8.MathSqrt) \
241 SC(math_tan, V8.MathTan) \ 241 SC(math_tan, V8.MathTan) \
242 SC(transcendental_cache_hit, V8.TranscendentalCacheHit) \ 242 SC(transcendental_cache_hit, V8.TranscendentalCacheHit) \
243 SC(transcendental_cache_miss, V8.TranscendentalCacheMiss) \ 243 SC(transcendental_cache_miss, V8.TranscendentalCacheMiss) \
244 SC(stack_interrupts, V8.StackInterrupts) \ 244 SC(stack_interrupts, V8.StackInterrupts) \
245 SC(runtime_profiler_ticks, V8.RuntimeProfilerTicks) \ 245 SC(runtime_profiler_ticks, V8.RuntimeProfilerTicks) \
246 SC(smi_checks_removed, V8.SmiChecksRemoved) \ 246 SC(smi_checks_removed, V8.SmiChecksRemoved) \
247 SC(map_checks_removed, V8.MapChecksRemoved) \ 247 SC(map_checks_removed, V8.MapChecksRemoved) \
248 SC(quote_json_char_count, V8.QuoteJsonCharacterCount) \ 248 SC(quote_json_char_count, V8.QuoteJsonCharacterCount) \
249 SC(quote_json_char_recount, V8.QuoteJsonCharacterReCount) 249 SC(quote_json_char_recount, V8.QuoteJsonCharacterReCount) \
250 SC(new_space_bytes_available, V8.MemoryNewSpaceBytesAvailable) \
251 SC(new_space_bytes_committed, V8.MemoryNewSpaceBytesCommitted) \
252 SC(new_space_bytes_used, V8.MemoryNewSpaceBytesUsed) \
253 SC(old_pointer_space_bytes_available, \
254 V8.MemoryOldPointerSpaceBytesAvailable) \
255 SC(old_pointer_space_bytes_committed, \
256 V8.MemoryOldPointerSpaceBytesCommitted) \
257 SC(old_pointer_space_bytes_used, V8.MemoryOldPointerSpaceBytesUsed) \
258 SC(old_data_space_bytes_available, V8.MemoryOldDataSpaceBytesAvailable) \
259 SC(old_data_space_bytes_committed, V8.MemoryOldDataSpaceBytesCommitted) \
260 SC(old_data_space_bytes_used, V8.MemoryOldDataSpaceBytesUsed) \
261 SC(code_space_bytes_available, V8.MemoryCodeSpaceBytesAvailable) \
262 SC(code_space_bytes_committed, V8.MemoryCodeSpaceBytesCommitted) \
263 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \
264 SC(map_space_bytes_available, V8.MemoryMapSpaceBytesAvailable) \
265 SC(map_space_bytes_committed, V8.MemoryMapSpaceBytesCommitted) \
266 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \
267 SC(cell_space_bytes_available, V8.MemoryCellSpaceBytesAvailable) \
268 SC(cell_space_bytes_committed, V8.MemoryCellSpaceBytesCommitted) \
269 SC(cell_space_bytes_used, V8.MemoryCellSpaceBytesUsed) \
270 SC(lo_space_bytes_available, V8.MemoryLoSpaceBytesAvailable) \
271 SC(lo_space_bytes_committed, V8.MemoryLoSpaceBytesCommitted) \
272 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed)
250 273
251 274
252 // This file contains all the v8 counters that are in use. 275 // This file contains all the v8 counters that are in use.
253 class Counters { 276 class Counters {
254 public: 277 public:
255 #define HT(name, caption) \ 278 #define HT(name, caption) \
256 HistogramTimer* name() { return &name##_; } 279 HistogramTimer* name() { return &name##_; }
257 HISTOGRAM_TIMER_LIST(HT) 280 HISTOGRAM_TIMER_LIST(HT)
258 #undef HT 281 #undef HT
259 282
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Sliding state window counters. 326 // Sliding state window counters.
304 StatsCounter state_counters_[kSlidingStateWindowCounterCount]; 327 StatsCounter state_counters_[kSlidingStateWindowCounterCount];
305 friend class Isolate; 328 friend class Isolate;
306 329
307 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 330 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
308 }; 331 };
309 332
310 } } // namespace v8::internal 333 } } // namespace v8::internal
311 334
312 #endif // V8_V8_COUNTERS_H_ 335 #endif // V8_V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698