summaryrefslogtreecommitdiff
path: root/deps/v8/include/v8-profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/include/v8-profiler.h')
-rw-r--r--deps/v8/include/v8-profiler.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/deps/v8/include/v8-profiler.h b/deps/v8/include/v8-profiler.h
index bc50b6f42b..d740df3bb7 100644
--- a/deps/v8/include/v8-profiler.h
+++ b/deps/v8/include/v8-profiler.h
@@ -184,19 +184,21 @@ class V8EXPORT CpuProfiler {
V8_DEPRECATED(static const CpuProfile* GetProfile(
int index,
Handle<Value> security_token = Handle<Value>()));
- /** Returns a profile by index. */
- const CpuProfile* GetCpuProfile(
+ /** Deprecated. Use GetCpuProfile with single parameter. */
+ V8_DEPRECATED(const CpuProfile* GetCpuProfile(
int index,
- Handle<Value> security_token = Handle<Value>());
+ Handle<Value> security_token));
+ /** Returns a profile by index. */
+ const CpuProfile* GetCpuProfile(int index);
/** Deprecated. Use FindProfile instead. */
V8_DEPRECATED(static const CpuProfile* FindProfile(
unsigned uid,
Handle<Value> security_token = Handle<Value>()));
/** Returns a profile by uid. */
- const CpuProfile* FindCpuProfile(
+ V8_DEPRECATED(const CpuProfile* FindCpuProfile(
unsigned uid,
- Handle<Value> security_token = Handle<Value>());
+ Handle<Value> security_token = Handle<Value>()));
/** Deprecated. Use StartCpuProfiling instead. */
V8_DEPRECATED(static void StartProfiling(Handle<String> title,
@@ -219,12 +221,16 @@ class V8EXPORT CpuProfiler {
Handle<String> title,
Handle<Value> security_token = Handle<Value>()));
/**
+ * Deprecated. Use StopCpuProfiling with one parameter instead.
+ */
+ V8_DEPRECATED(const CpuProfile* StopCpuProfiling(
+ Handle<String> title,
+ Handle<Value> security_token));
+ /**
* Stops collecting CPU profile with a given title and returns it.
* If the title given is empty, finishes the last profile started.
*/
- const CpuProfile* StopCpuProfiling(
- Handle<String> title,
- Handle<Value> security_token = Handle<Value>());
+ const CpuProfile* StopCpuProfiling(Handle<String> title);
/** Deprecated. Use DeleteAllCpuProfiles instead. */
V8_DEPRECATED(static void DeleteAllProfiles());
@@ -438,7 +444,7 @@ class V8EXPORT HeapProfiler {
/** Deprecated. Use FindHeapSnapshot instead. */
V8_DEPRECATED(static const HeapSnapshot* FindSnapshot(unsigned uid));
/** Returns a profile by uid. */
- const HeapSnapshot* FindHeapSnapshot(unsigned uid);
+ V8_DEPRECATED(const HeapSnapshot* FindHeapSnapshot(unsigned uid));
/** Deprecated. Use GetObjectId instead. */
V8_DEPRECATED(static SnapshotObjectId GetSnapshotObjectId(