| Index: include/v8-profiler.h
|
| diff --git a/include/v8-profiler.h b/include/v8-profiler.h
|
| index 0ed6c5d216b3f8708bea6ae794937b18f844591f..46752e968dcf1ad4c487d4246ebd385f91255539 100644
|
| --- a/include/v8-profiler.h
|
| +++ b/include/v8-profiler.h
|
| @@ -96,9 +96,6 @@ class V8_EXPORT CpuProfileNode {
|
| */
|
| class V8_EXPORT CpuProfile {
|
| public:
|
| - /** Returns CPU profile UID (assigned by the profiler.) */
|
| - unsigned GetUid() const;
|
| -
|
| /** Returns CPU profile title. */
|
| Handle<String> GetTitle() const;
|
|
|
| @@ -132,10 +129,6 @@ class V8_EXPORT CpuProfile {
|
| /**
|
| * Deletes the profile and removes it from CpuProfiler's list.
|
| * All pointers to nodes previously returned become invalid.
|
| - * Profiles with the same uid but obtained using different
|
| - * security token are not deleted, but become inaccessible
|
| - * using FindProfile method. It is embedder's responsibility
|
| - * to call Delete on these profiles.
|
| */
|
| void Delete();
|
| };
|
| @@ -155,15 +148,6 @@ class V8_EXPORT CpuProfiler {
|
| void SetSamplingInterval(int us);
|
|
|
| /**
|
| - * Returns the number of profiles collected (doesn't include
|
| - * profiles that are being collected at the moment of call.)
|
| - */
|
| - int GetProfileCount();
|
| -
|
| - /** Returns a profile by index. */
|
| - const CpuProfile* GetCpuProfile(int index);
|
| -
|
| - /**
|
| * Starts collecting CPU profile. Title may be an empty string. It
|
| * is allowed to have several profiles being collected at
|
| * once. Attempts to start collecting several profiles with the same
|
| @@ -183,13 +167,6 @@ class V8_EXPORT CpuProfiler {
|
| const CpuProfile* StopCpuProfiling(Handle<String> title);
|
|
|
| /**
|
| - * Deletes all existing profiles, also cancelling all profiling
|
| - * activity. All previously returned pointers to profiles and their
|
| - * contents become invalid after this call.
|
| - */
|
| - void DeleteAllCpuProfiles();
|
| -
|
| - /**
|
| * Tells the profiler whether the embedder is idle.
|
| */
|
| void SetIdle(bool is_idle);
|
| @@ -287,12 +264,6 @@ class V8_EXPORT HeapGraphNode {
|
|
|
| /** Retrieves a child by index. */
|
| const HeapGraphEdge* GetChild(int index) const;
|
| -
|
| - /**
|
| - * Finds and returns a value from the heap corresponding to this node,
|
| - * if the value is still reachable.
|
| - */
|
| - Handle<Value> GetHeapValue() const;
|
| };
|
|
|
|
|
| @@ -393,6 +364,19 @@ class V8_EXPORT HeapProfiler {
|
| SnapshotObjectId GetObjectId(Handle<Value> value);
|
|
|
| /**
|
| + * Returns heap object with given SnapshotObjectId if the object is alive,
|
| + * otherwise empty handle is returned.
|
| + */
|
| + Handle<Value> FindObjectById(SnapshotObjectId id);
|
| +
|
| + /**
|
| + * Clears internal map from SnapshotObjectId to heap object. The new objects
|
| + * will not be added into it unless a heap snapshot is taken or heap object
|
| + * tracking is kicked off.
|
| + */
|
| + void ClearObjectIds();
|
| +
|
| + /**
|
| * A constant for invalid SnapshotObjectId. GetSnapshotObjectId will return
|
| * it in case heap profiler cannot find id for the object passed as
|
| * parameter. HeapSnapshot::GetNodeById will always return NULL for such id.
|
| @@ -479,21 +463,6 @@ class V8_EXPORT HeapProfiler {
|
| */
|
| void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info);
|
|
|
| - /**
|
| - * Starts recording JS allocations immediately as they arrive and tracking of
|
| - * heap objects population statistics.
|
| - */
|
| - V8_DEPRECATED("Use StartTrackingHeapObjects instead",
|
| - void StartRecordingHeapAllocations());
|
| -
|
| - /**
|
| - * Stops recording JS allocations and tracking of heap objects population
|
| - * statistics, cleans all collected heap objects population statistics data.
|
| - */
|
| - V8_DEPRECATED("Use StopTrackingHeapObjects instead",
|
| - void StopRecordingHeapAllocations());
|
| -
|
| -
|
| private:
|
| HeapProfiler();
|
| ~HeapProfiler();
|
|
|