| Index: include/v8-profiler.h
|
| diff --git a/include/v8-profiler.h b/include/v8-profiler.h
|
| index bc50b6f42bcc36779d1c4c4eeeb65e16824a3586..d740df3bb7bd9e668666fd7a8b1360c1800c9289 100644
|
| --- a/include/v8-profiler.h
|
| +++ b/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(
|
|
|