| Index: src/heap-profiler.h
|
| diff --git a/src/heap-profiler.h b/src/heap-profiler.h
|
| index 28e240daf666c5703e73605ce625c7ebfba01fad..b593b992bb981ac8ae181f763f8ded0a9522bb5c 100644
|
| --- a/src/heap-profiler.h
|
| +++ b/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 {
|
|
|