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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1963 * Applications must provide a callback function which is called to generate | 1963 * Applications must provide a callback function which is called to generate |
1964 * a context if a context was not deserialized from the snapshot. | 1964 * a context if a context was not deserialized from the snapshot. |
1965 */ | 1965 */ |
1966 typedef Persistent<Context> (*ContextGenerator)(); | 1966 typedef Persistent<Context> (*ContextGenerator)(); |
1967 | 1967 |
1968 | 1968 |
1969 /** | 1969 /** |
1970 * Profiler modules. | 1970 * Profiler modules. |
1971 * | 1971 * |
1972 * In V8, profiler consists of several modules: CPU profiler, and different | 1972 * In V8, profiler consists of several modules: CPU profiler, and different |
1973 * kinds of heap profiling. Each can be turned on / off independently. | 1973 * kinds of heap profiling. Each can be turned on / off independently. |
Søren Thygesen Gjesse
2009/08/04 13:44:55
Please add a comment on PROFILER_MODULE_HEAP_SNAPS
mnaganov (inactive)
2009/08/04 14:12:38
Done.
| |
1974 */ | 1974 */ |
1975 enum ProfilerModules { | 1975 enum ProfilerModules { |
1976 PROFILER_MODULE_NONE = 0, | 1976 PROFILER_MODULE_NONE = 0, |
1977 PROFILER_MODULE_CPU = 1, | 1977 PROFILER_MODULE_CPU = 1, |
1978 PROFILER_MODULE_HEAP_STATS = 1 << 1, | 1978 PROFILER_MODULE_HEAP_STATS = 1 << 1, |
1979 PROFILER_MODULE_JS_CONSTRUCTORS = 1 << 2 | 1979 PROFILER_MODULE_JS_CONSTRUCTORS = 1 << 2, |
1980 PROFILER_MODULE_HEAP_SNAPSHOT = 1 << 16 | |
1980 }; | 1981 }; |
1981 | 1982 |
1982 | 1983 |
1983 /** | 1984 /** |
1984 * Container class for static utility functions. | 1985 * Container class for static utility functions. |
1985 */ | 1986 */ |
1986 class V8EXPORT V8 { | 1987 class V8EXPORT V8 { |
1987 public: | 1988 public: |
1988 /** Set the callback to invoke in case of fatal errors. */ | 1989 /** Set the callback to invoke in case of fatal errors. */ |
1989 static void SetFatalErrorHandler(FatalErrorCallback that); | 1990 static void SetFatalErrorHandler(FatalErrorCallback that); |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2667 | 2668 |
2668 } // namespace v8 | 2669 } // namespace v8 |
2669 | 2670 |
2670 | 2671 |
2671 #undef V8EXPORT | 2672 #undef V8EXPORT |
2672 #undef V8EXPORT_INLINE | 2673 #undef V8EXPORT_INLINE |
2673 #undef TYPE_CHECK | 2674 #undef TYPE_CHECK |
2674 | 2675 |
2675 | 2676 |
2676 #endif // V8_H_ | 2677 #endif // V8_H_ |
OLD | NEW |