HeapProfiler🧪
✅️️ Methods
🔨HeapProfiler.addInspectedHeapObject
启用控制台通过$x引用具有给定ID的节点(有关$x函数的更多详细信息,请参阅命令行API)。
EN
Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| heapObjectId | ✔️ | HeapSnapshotObjectId | 堆快照对象ID可通过$x命令行API访问。 | ENHeap snapshot object id to be accessible by means of $x command line API. |
🔨HeapProfiler.collectGarbage
🔨HeapProfiler.disable
🔨HeapProfiler.enable
🔨HeapProfiler.getHeapObjectId
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| objectId | ✔️ | Runtime.RemoteObjectId | 获取堆对象ID的目标对象标识符。 | ENIdentifier of the object to get heap object id for. |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| heapSnapshotObjectId | HeapSnapshotObjectId | 与传递的远程对象ID对应的堆快照对象的ID。 | ENId of the heap snapshot object corresponding to the passed remote object id. |