Remove obsolete TakeHeapSnapshot method from API
authoryurys <yurys@chromium.org>
Mon, 16 Mar 2015 09:49:18 +0000 (02:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Mar 2015 09:49:28 +0000 (09:49 +0000)
BUG=chromium:465651
LOG=Y

Review URL: https://codereview.chromium.org/997583004

Cr-Commit-Position: refs/heads/master@{#27208}

include/v8-profiler.h
src/api.cc

index 56b8e02..173849e 100644 (file)
@@ -447,16 +447,9 @@ class V8_EXPORT HeapProfiler {
   };
 
   /**
-   * Takes a heap snapshot and returns it. Title parameter is deprecated and
-   * should be an empty string.
-   * TODO: deprecate this method.
+   * Takes a heap snapshot and returns it.
    */
   const HeapSnapshot* TakeHeapSnapshot(
-      Handle<String> title,
-      ActivityControl* control = NULL,
-      ObjectNameResolver* global_object_name_resolver = NULL);
-
-  const HeapSnapshot* TakeHeapSnapshot(
       ActivityControl* control = NULL,
       ObjectNameResolver* global_object_name_resolver = NULL);
 
index d55050a..7eeb57d 100644 (file)
@@ -7715,14 +7715,6 @@ void HeapProfiler::ClearObjectIds() {
 
 
 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)