diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-06-23 20:31:48 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-06-23 20:32:06 -0700 |
commit | 2c0d91be6c8972f325b64a15c798f45e68bf183a (patch) | |
tree | f77c0d7fcb6a80f8483d1fa4d0dd0df0b88d68d6 /deps/v8/src/heap-profiler.h | |
parent | ba792ea2020f38ebf84925e740b42823b739d0d3 (diff) | |
download | node-new-2c0d91be6c8972f325b64a15c798f45e68bf183a.tar.gz |
Upgrade V8 to 2.2.19
Diffstat (limited to 'deps/v8/src/heap-profiler.h')
-rw-r--r-- | deps/v8/src/heap-profiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/v8/src/heap-profiler.h b/deps/v8/src/heap-profiler.h index 28e240daf6..b593b992bb 100644 --- a/deps/v8/src/heap-profiler.h +++ b/deps/v8/src/heap-profiler.h @@ -38,12 +38,16 @@ namespace internal { class HeapSnapshot; class HeapSnapshotsCollection; +#endif + // The HeapProfiler writes data to the log files, which can be postprocessed // to generate .hp files for use by the GHC/Valgrind tool hp2ps. class HeapProfiler { public: static void Setup(); static void TearDown(); + +#ifdef ENABLE_LOGGING_AND_PROFILING static HeapSnapshot* TakeSnapshot(const char* name); static HeapSnapshot* TakeSnapshot(String* name); static int GetSnapshotsCount(); @@ -68,9 +72,12 @@ class HeapProfiler { unsigned next_snapshot_uid_; static HeapProfiler* singleton_; +#endif // ENABLE_LOGGING_AND_PROFILING }; +#ifdef ENABLE_LOGGING_AND_PROFILING + // JSObjectsCluster describes a group of JS objects that are // considered equivalent in terms of a particular profile. class JSObjectsCluster BASE_EMBEDDED { |