| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 4bff5e1335d8207ce5517a4b2c3b45b5208bde7b..e169bd08a0996e6de49e53e50cd17fbcb769e723 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4947,7 +4947,8 @@ const HeapSnapshot* HeapProfiler::FindSnapshot(unsigned uid) {
|
|
|
|
|
| const HeapSnapshot* HeapProfiler::TakeSnapshot(Handle<String> title,
|
| - HeapSnapshot::Type type) {
|
| + HeapSnapshot::Type type,
|
| + ActivityControl* control) {
|
| IsDeadCheck("v8::HeapProfiler::TakeSnapshot");
|
| i::HeapSnapshot::Type internal_type = i::HeapSnapshot::kFull;
|
| switch (type) {
|
| @@ -4961,7 +4962,8 @@ const HeapSnapshot* HeapProfiler::TakeSnapshot(Handle<String> title,
|
| UNREACHABLE();
|
| }
|
| return reinterpret_cast<const HeapSnapshot*>(
|
| - i::HeapProfiler::TakeSnapshot(*Utils::OpenHandle(*title), internal_type));
|
| + i::HeapProfiler::TakeSnapshot(
|
| + *Utils::OpenHandle(*title), internal_type, control));
|
| }
|
|
|
| #endif // ENABLE_LOGGING_AND_PROFILING
|
|
|