Stability: 1Experimental
syncHeapProfileHandle.stop(): string
Returns:
stringStopping 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 (selfSizeis the existing total in bytes). - Each sample reports
objectSize,objectCount, andisLive.
The DevTools size field stays objectSize * objectCount for compatibility.
syncHeapProfileHandle[Symbol.dispose](): void
Stopping collecting the profile and the profile will be discarded.