public interface HeapProfiler
void addInspectedHeapObject(String heapObjectId)
heapObjectId - Heap snapshot object id to be accessible by means of $x command line API.void collectGarbage()
void disable()
void enable()
String getHeapObjectId(String objectId)
objectId - Identifier of the object to get heap object id for.RemoteObject getObjectByHeapObjectId(String objectId)
objectId - RemoteObject getObjectByHeapObjectId(String objectId, String objectGroup)
objectId - objectGroup - Symbolic group name that can be used to release multiple objects.SamplingHeapProfile getSamplingProfile()
void startSampling()
void startSampling(Double samplingInterval)
samplingInterval - Average sample interval in bytes. Poisson distribution is used for the
intervals. The default value is 32768 bytes.void startTrackingHeapObjects()
void startTrackingHeapObjects(Boolean trackAllocations)
trackAllocations - SamplingHeapProfile stopSampling()
void stopTrackingHeapObjects()
void stopTrackingHeapObjects(Boolean reportProgress)
reportProgress - If true 'reportHeapSnapshotProgress' events will be generated while
snapshot is being taken when the tracking is stopped.void takeHeapSnapshot()
void takeHeapSnapshot(Boolean reportProgress)
reportProgress - If true 'reportHeapSnapshotProgress' events will be generated while
snapshot is being taken.EventListener onAddHeapSnapshotChunk(EventHandler<AddHeapSnapshotChunk> eventListener)
EventListener onHeapStatsUpdate(EventHandler<HeapStatsUpdate> eventListener)
EventListener onLastSeenObjectId(EventHandler<LastSeenObjectId> eventListener)
EventListener onReportHeapSnapshotProgress(EventHandler<ReportHeapSnapshotProgress> eventListener)
EventListener onResetProfiles(EventHandler<ResetProfiles> eventListener)
Copyright © 2020. All rights reserved.