OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 SR(pre_parse, V8.PreParse) /* Pre-parse time */ | 43 SR(pre_parse, V8.PreParse) /* Pre-parse time */ |
44 | 44 |
45 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC | 45 // 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 | 46 // 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 | 47 // 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 | 48 // this problem. Please avoid using recursive macros of this length when |
49 // possible. | 49 // possible. |
50 #define STATS_COUNTER_LIST_1(SC) \ | 50 #define STATS_COUNTER_LIST_1(SC) \ |
51 /* Global Handle Count*/ \ | 51 /* Global Handle Count*/ \ |
52 SC(global_handles, V8.GlobalHandles) \ | 52 SC(global_handles, V8.GlobalHandles) \ |
53 /* Global Object Count */ \ | |
54 SC(global_objects, V8.GlobalObjects) \ | |
55 /* Mallocs from PCRE */ \ | 53 /* Mallocs from PCRE */ \ |
56 SC(pcre_mallocs, V8.PcreMallocCount) \ | 54 SC(pcre_mallocs, V8.PcreMallocCount) \ |
57 /* OS Memory allocated */ \ | 55 /* OS Memory allocated */ \ |
58 SC(memory_allocated, V8.OsMemoryAllocated) \ | 56 SC(memory_allocated, V8.OsMemoryAllocated) \ |
59 SC(props_to_dictionary, V8.ObjectPropertiesToDictionary) \ | 57 SC(props_to_dictionary, V8.ObjectPropertiesToDictionary) \ |
60 SC(elements_to_dictionary, V8.ObjectElementsToDictionary) \ | 58 SC(elements_to_dictionary, V8.ObjectElementsToDictionary) \ |
61 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ | 59 SC(alive_after_last_gc, V8.AliveAfterLastGC) \ |
62 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ | 60 SC(objs_since_last_young, V8.ObjsSinceLastYoung) \ |
63 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ | 61 SC(objs_since_last_full, V8.ObjsSinceLastFull) \ |
64 SC(symbol_table_capacity, V8.SymbolTableCapacity) \ | 62 SC(symbol_table_capacity, V8.SymbolTableCapacity) \ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 stats_counter_count | 149 stats_counter_count |
152 }; | 150 }; |
153 | 151 |
154 // Sliding state window counters. | 152 // Sliding state window counters. |
155 static StatsCounter state_counters[]; | 153 static StatsCounter state_counters[]; |
156 }; | 154 }; |
157 | 155 |
158 } } // namespace v8::internal | 156 } } // namespace v8::internal |
159 | 157 |
160 #endif // V8_COUNTERS_H_ | 158 #endif // V8_COUNTERS_H_ |
OLD | NEW |