Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 746865767bbf37f1c436f1d09b3773ea11e7cad3..fa5f6c41356e11d01ff41e27a9e7b50edc85d326 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7622,18 +7622,6 @@ void HeapSnapshot::Delete() { |
} |
-unsigned HeapSnapshot::GetUid() const { |
- return ToInternal(this)->uid(); |
-} |
- |
- |
-Handle<String> HeapSnapshot::GetTitle() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- return ToApiHandle<String>( |
- isolate->factory()->InternalizeUtf8String(ToInternal(this)->title())); |
-} |
- |
- |
const HeapGraphNode* HeapSnapshot::GetRoot() const { |
return reinterpret_cast<const HeapGraphNode*>(ToInternal(this)->root()); |
} |
@@ -7713,9 +7701,15 @@ const HeapSnapshot* HeapProfiler::TakeHeapSnapshot( |
Handle<String> title, |
ActivityControl* control, |
ObjectNameResolver* resolver) { |
+ return TakeHeapSnapshot(control, resolver); |
+} |
+ |
+ |
+const HeapSnapshot* HeapProfiler::TakeHeapSnapshot( |
+ ActivityControl* control, ObjectNameResolver* resolver) { |
return reinterpret_cast<const HeapSnapshot*>( |
- reinterpret_cast<i::HeapProfiler*>(this)->TakeSnapshot( |
- *Utils::OpenHandle(*title), control, resolver)); |
+ reinterpret_cast<i::HeapProfiler*>(this) |
+ ->TakeSnapshot(control, resolver)); |
} |