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

Side by Side Diff: include/v8.h

Issue 159787: Add snapshot mode for heap profiling. (Closed)
Patch Set: Reworked to hide explicit GC inside Profiler API Created 11 years, 4 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698