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

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

Issue 27201: Experimental (somewhat): Force GCs when disposing contexts. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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/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 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 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_V8_COUNTERS_H_ 28 #ifndef V8_V8_COUNTERS_H_
29 #define V8_V8_COUNTERS_H_ 29 #define V8_V8_COUNTERS_H_
30 30
31 #include "counters.h" 31 #include "counters.h"
32 32
33 namespace v8 { namespace internal { 33 namespace v8 { namespace internal {
34 34
35 #define STATS_RATE_LIST(SR) \ 35 #define STATS_RATE_LIST(SR) \
36 SR(gc_compactor, V8.GCCompactor) /* GC Compactor time */ \ 36 SR(gc_compactor, V8.GCCompactor) /* GC Compactor time */ \
37 SR(gc_scavenger, V8.GCScavenger) /* GC Scavenger time */ \ 37 SR(gc_scavenger, V8.GCScavenger) /* GC Scavenger time */ \
38 SR(compile, V8.Compile) /* Compile time*/ \ 38 SR(gc_context, V8.GCContext) /* GC context cleanup time */ \
39 SR(compile_eval, V8.CompileEval) /* Eval compile time */ \ 39 SR(compile, V8.Compile) /* Compile time*/ \
40 SR(compile_lazy, V8.CompileLazy) /* Lazy compile time */ \ 40 SR(compile_eval, V8.CompileEval) /* Eval compile time */ \
41 SR(parse, V8.Parse) /* Parse time */ \ 41 SR(compile_lazy, V8.CompileLazy) /* Lazy compile time */ \
42 SR(parse_lazy, V8.ParseLazy) /* Lazy parse time */ \ 42 SR(parse, V8.Parse) /* Parse time */ \
43 SR(parse_lazy, V8.ParseLazy) /* Lazy parse time */ \
43 SR(pre_parse, V8.PreParse) /* Pre-parse time */ 44 SR(pre_parse, V8.PreParse) /* Pre-parse time */
44 45
45 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC 46 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC
46 // Intellisense to crash. It was broken into two macros (each of length 40 47 // Intellisense to crash. It was broken into two macros (each of length 40
47 // lines) rather than one macro (of length about 80 lines) to work around 48 // lines) rather than one macro (of length about 80 lines) to work around
48 // this problem. Please avoid using recursive macros of this length when 49 // this problem. Please avoid using recursive macros of this length when
49 // possible. 50 // possible.
50 #define STATS_COUNTER_LIST_1(SC) \ 51 #define STATS_COUNTER_LIST_1(SC) \
51 /* Global Handle Count*/ \ 52 /* Global Handle Count*/ \
52 SC(global_handles, V8.GlobalHandles) \ 53 SC(global_handles, V8.GlobalHandles) \
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 stats_counter_count 153 stats_counter_count
153 }; 154 };
154 155
155 // Sliding state window counters. 156 // Sliding state window counters.
156 static StatsCounter state_counters[]; 157 static StatsCounter state_counters[];
157 }; 158 };
158 159
159 } } // namespace v8::internal 160 } } // namespace v8::internal
160 161
161 #endif // V8_COUNTERS_H_ 162 #endif // 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