OLD | NEW |
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 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2553 | 2553 |
2554 typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); | 2554 typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); |
2555 typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); | 2555 typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); |
2556 | 2556 |
2557 typedef void (*GCCallback)(); | 2557 typedef void (*GCCallback)(); |
2558 | 2558 |
2559 | 2559 |
2560 /** | 2560 /** |
2561 * Profiler modules. | 2561 * Profiler modules. |
2562 * | 2562 * |
2563 * In V8, profiler consists of several modules: CPU profiler, and different | 2563 * In V8, profiler consists of several modules. Each can be turned on / off |
2564 * kinds of heap profiling. Each can be turned on / off independently. | 2564 * independently. |
2565 * When PROFILER_MODULE_HEAP_SNAPSHOT flag is passed to ResumeProfilerEx, | |
2566 * modules are enabled only temporarily for making a snapshot of the heap. | |
2567 */ | 2565 */ |
2568 enum ProfilerModules { | 2566 enum ProfilerModules { |
2569 PROFILER_MODULE_NONE = 0, | 2567 PROFILER_MODULE_NONE = 0, |
2570 PROFILER_MODULE_CPU = 1, | 2568 PROFILER_MODULE_CPU = 1 |
2571 PROFILER_MODULE_HEAP_STATS = 1 << 1, | |
2572 PROFILER_MODULE_JS_CONSTRUCTORS = 1 << 2, | |
2573 PROFILER_MODULE_HEAP_SNAPSHOT = 1 << 16 | |
2574 }; | 2569 }; |
2575 | 2570 |
2576 | 2571 |
2577 /** | 2572 /** |
2578 * Collection of V8 heap information. | 2573 * Collection of V8 heap information. |
2579 * | 2574 * |
2580 * Instances of this class can be passed to v8::V8::HeapStatistics to | 2575 * Instances of this class can be passed to v8::V8::HeapStatistics to |
2581 * get heap statistics from V8. | 2576 * get heap statistics from V8. |
2582 */ | 2577 */ |
2583 class V8EXPORT HeapStatistics { | 2578 class V8EXPORT HeapStatistics { |
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4154 | 4149 |
4155 | 4150 |
4156 } // namespace v8 | 4151 } // namespace v8 |
4157 | 4152 |
4158 | 4153 |
4159 #undef V8EXPORT | 4154 #undef V8EXPORT |
4160 #undef TYPE_CHECK | 4155 #undef TYPE_CHECK |
4161 | 4156 |
4162 | 4157 |
4163 #endif // V8_H_ | 4158 #endif // V8_H_ |
OLD | NEW |