On this page

C

SyncHeapProfileHandle

History
Stability: 1Experimental
M

syncHeapProfileHandle.stop

History
syncHeapProfileHandle.stop(): string
Returns:string

Stopping collecting the profile and return the profile data.

The returned string is JSON in the Chrome DevTools sampling heap profile format, with a head call-tree and a samples array. On top of the DevTools fields, the following are added:

  • Each node reports selfCount, the number of sampled objects allocated by the node (selfSize is the existing total in bytes).
  • Each sample reports objectSize, objectCount, and isLive.

The DevTools size field stays objectSize * objectCount for compatibility.

M

syncHeapProfileHandle[Symbol.dispose]

History
syncHeapProfileHandle[Symbol.dispose](): void

Stopping collecting the profile and the profile will be discarded.