v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 236 | skipping to change at line 236 | |||
*/ | */ | |||
Handle<Value> GetName() const; | Handle<Value> GetName() const; | |||
/** Returns origin node. */ | /** Returns origin node. */ | |||
const HeapGraphNode* GetFromNode() const; | const HeapGraphNode* GetFromNode() const; | |||
/** Returns destination node. */ | /** Returns destination node. */ | |||
const HeapGraphNode* GetToNode() const; | const HeapGraphNode* GetToNode() const; | |||
}; | }; | |||
class V8EXPORT HeapGraphPath { | ||||
public: | ||||
/** Returns the number of edges in the path. */ | ||||
int GetEdgesCount() const; | ||||
/** Returns an edge from the path. */ | ||||
const HeapGraphEdge* GetEdge(int index) const; | ||||
/** Returns origin node. */ | ||||
const HeapGraphNode* GetFromNode() const; | ||||
/** Returns destination node. */ | ||||
const HeapGraphNode* GetToNode() const; | ||||
}; | ||||
/** | /** | |||
* HeapGraphNode represents a node in a heap graph. | * HeapGraphNode represents a node in a heap graph. | |||
*/ | */ | |||
class V8EXPORT HeapGraphNode { | class V8EXPORT HeapGraphNode { | |||
public: | public: | |||
enum Type { | enum Type { | |||
kHidden = 0, // Hidden node, may be filtered when shown to user. | kHidden = 0, // Hidden node, may be filtered when shown to user. | |||
kArray = 1, // An array of elements. | kArray = 1, // An array of elements. | |||
kString = 2, // A string. | kString = 2, // A string. | |||
kObject = 3, // A JS object (except for arrays and strings). | kObject = 3, // A JS object (except for arrays and strings). | |||
skipping to change at line 320 | skipping to change at line 305 | |||
/** Retrieves a child by index. */ | /** Retrieves a child by index. */ | |||
const HeapGraphEdge* GetChild(int index) const; | const HeapGraphEdge* GetChild(int index) const; | |||
/** Returns retainer nodes count of the node. */ | /** Returns retainer nodes count of the node. */ | |||
int GetRetainersCount() const; | int GetRetainersCount() const; | |||
/** Returns a retainer by index. */ | /** Returns a retainer by index. */ | |||
const HeapGraphEdge* GetRetainer(int index) const; | const HeapGraphEdge* GetRetainer(int index) const; | |||
/** Returns the number of simple retaining paths from the root to the nod | ||||
e. */ | ||||
int GetRetainingPathsCount() const; | ||||
/** Returns a retaining path by index. */ | ||||
const HeapGraphPath* GetRetainingPath(int index) const; | ||||
/** | /** | |||
* Returns a dominator node. This is the node that participates in every | * Returns a dominator node. This is the node that participates in every | |||
* path from the snapshot root to the current node. | * path from the snapshot root to the current node. | |||
*/ | */ | |||
const HeapGraphNode* GetDominatorNode() const; | const HeapGraphNode* GetDominatorNode() const; | |||
}; | }; | |||
class V8EXPORT HeapSnapshotsDiff { | ||||
public: | ||||
/** Returns the root node for added nodes. */ | ||||
const HeapGraphNode* GetAdditionsRoot() const; | ||||
/** Returns the root node for deleted nodes. */ | ||||
const HeapGraphNode* GetDeletionsRoot() const; | ||||
}; | ||||
/** | /** | |||
* HeapSnapshots record the state of the JS heap at some moment. | * HeapSnapshots record the state of the JS heap at some moment. | |||
*/ | */ | |||
class V8EXPORT HeapSnapshot { | class V8EXPORT HeapSnapshot { | |||
public: | public: | |||
enum Type { | enum Type { | |||
kFull = 0, // Heap snapshot with all instances and references. | kFull = 0, // Heap snapshot with all instances and references. | |||
kAggregated = 1 // Snapshot doesn't contain individual heap entries, | kAggregated = 1 // Snapshot doesn't contain individual heap entries, | |||
// instead they are grouped by constructor name. | // instead they are grouped by constructor name. | |||
}; | }; | |||
skipping to change at line 372 | skipping to change at line 342 | |||
/** Returns heap snapshot title. */ | /** Returns heap snapshot title. */ | |||
Handle<String> GetTitle() const; | Handle<String> GetTitle() const; | |||
/** Returns the root node of the heap graph. */ | /** Returns the root node of the heap graph. */ | |||
const HeapGraphNode* GetRoot() const; | const HeapGraphNode* GetRoot() const; | |||
/** Returns a node by its id. */ | /** Returns a node by its id. */ | |||
const HeapGraphNode* GetNodeById(uint64_t id) const; | const HeapGraphNode* GetNodeById(uint64_t id) const; | |||
/** | /** | |||
* Returns a diff between this snapshot and another one. Only snapshots | ||||
* of the same type can be compared. | ||||
*/ | ||||
const HeapSnapshotsDiff* CompareWith(const HeapSnapshot* snapshot) const; | ||||
/** | ||||
* Deletes the snapshot and removes it from HeapProfiler's list. | * Deletes the snapshot and removes it from HeapProfiler's list. | |||
* All pointers to nodes, edges and paths previously returned become | * All pointers to nodes, edges and paths previously returned become | |||
* invalid. | * invalid. | |||
*/ | */ | |||
void Delete(); | void Delete(); | |||
/** | /** | |||
* Prepare a serialized representation of the snapshot. The result | * Prepare a serialized representation of the snapshot. The result | |||
* is written into the stream provided in chunks of specified size. | * is written into the stream provided in chunks of specified size. | |||
* The total length of the serialized snapshot is unknown in | * The total length of the serialized snapshot is unknown in | |||
End of changes. 4 change blocks. | ||||
37 lines changed or deleted | 0 lines changed or added | |||