| Index: src/heap-profiler.h
|
| ===================================================================
|
| --- src/heap-profiler.h (revision 6904)
|
| +++ src/heap-profiler.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2009 the V8 project authors. All rights reserved.
|
| +// Copyright 2009-2010 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -58,8 +58,12 @@
|
| static void TearDown();
|
|
|
| #ifdef ENABLE_LOGGING_AND_PROFILING
|
| - static HeapSnapshot* TakeSnapshot(const char* name, int type);
|
| - static HeapSnapshot* TakeSnapshot(String* name, int type);
|
| + static HeapSnapshot* TakeSnapshot(const char* name,
|
| + int type,
|
| + v8::ActivityControl* control);
|
| + static HeapSnapshot* TakeSnapshot(String* name,
|
| + int type,
|
| + v8::ActivityControl* control);
|
| static int GetSnapshotsCount();
|
| static HeapSnapshot* GetSnapshot(int index);
|
| static HeapSnapshot* FindSnapshot(unsigned uid);
|
| @@ -77,8 +81,12 @@
|
| private:
|
| HeapProfiler();
|
| ~HeapProfiler();
|
| - HeapSnapshot* TakeSnapshotImpl(const char* name, int type);
|
| - HeapSnapshot* TakeSnapshotImpl(String* name, int type);
|
| + HeapSnapshot* TakeSnapshotImpl(const char* name,
|
| + int type,
|
| + v8::ActivityControl* control);
|
| + HeapSnapshot* TakeSnapshotImpl(String* name,
|
| + int type,
|
| + v8::ActivityControl* control);
|
|
|
| HeapSnapshotsCollection* snapshots_;
|
| unsigned next_snapshot_uid_;
|
|
|