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

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: Created 8 years, 6 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
« src/spaces.cc ('K') | « src/spaces.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_allocated, V8.MemoryNewSpaceBytesAllocated) \
251 SC(new_space_bytes_used, V8.MemoryNewSpaceBytesUsed) \
252 SC(old_pointer_space_bytes_allocated, \
253 V8.MemoryOldPointerSpaceBytesAllocated) \
254 SC(old_pointer_space_bytes_used, V8.MemoryOldPointerSpaceBytesUsed) \
255 SC(old_data_space_bytes_allocated, V8.MemoryOldDataSpaceBytesAllocated) \
256 SC(old_data_space_bytes_used, V8.MemoryOldDataSpaceBytesUsed) \
257 SC(code_space_bytes_allocated, V8.MemoryCodeSpaceBytesAllocated) \
258 SC(code_space_bytes_used, V8.MemoryCodeSpaceBytesUsed) \
259 SC(map_space_bytes_allocated, V8.MemoryMapSpaceBytesAllocated) \
260 SC(map_space_bytes_used, V8.MemoryMapSpaceBytesUsed) \
261 SC(cell_space_bytes_allocated, V8.MemoryCellSpaceBytesAllocated) \
262 SC(cell_space_bytes_used, V8.MemoryCellSpaceBytesUsed) \
263 SC(lo_space_bytes_allocated, V8.MemoryLoSpaceBytesAllocated) \
264 SC(lo_space_bytes_used, V8.MemoryLoSpaceBytesUsed)
250 265
251 266
252 // This file contains all the v8 counters that are in use. 267 // This file contains all the v8 counters that are in use.
253 class Counters { 268 class Counters {
254 public: 269 public:
255 #define HT(name, caption) \ 270 #define HT(name, caption) \
256 HistogramTimer* name() { return &name##_; } 271 HistogramTimer* name() { return &name##_; }
257 HISTOGRAM_TIMER_LIST(HT) 272 HISTOGRAM_TIMER_LIST(HT)
258 #undef HT 273 #undef HT
259 274
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Sliding state window counters. 318 // Sliding state window counters.
304 StatsCounter state_counters_[kSlidingStateWindowCounterCount]; 319 StatsCounter state_counters_[kSlidingStateWindowCounterCount];
305 friend class Isolate; 320 friend class Isolate;
306 321
307 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 322 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
308 }; 323 };
309 324
310 } } // namespace v8::internal 325 } } // namespace v8::internal
311 326
312 #endif // V8_V8_COUNTERS_H_ 327 #endif // V8_V8_COUNTERS_H_
OLDNEW
« src/spaces.cc ('K') | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698