takeHeapSnapshot
suspend fun takeHeapSnapshot(args: HeapProfiler.TakeHeapSnapshotParameter, mode: CommandMode = CommandMode.DEFAULT)
suspend fun takeHeapSnapshot(reportProgress: Boolean? = null, treatGlobalObjectsAsRoots: Boolean? = null, captureNumericValue: Boolean? = null, exposeInternals: Boolean? = null)
Parameters
reportProgress
If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
treatGlobalObjectsAsRoots
If true, a raw snapshot without artificial roots will be generated. Deprecated in favor of exposeInternals.
captureNumericValue
If true, numerical values are included in the snapshot
exposeInternals
If true, exposes internals of the snapshot.