public interface HeapProfiler
| Modifier and Type | Method and Description |
|---|---|
void |
addInspectedHeapObject(String heapObjectId)
Enables console to refer to the node with given id via $x (see Command Line API for more
details $x functions).
|
void |
collectGarbage() |
void |
disable() |
void |
enable() |
String |
getHeapObjectId(String objectId) |
RemoteObject |
getObjectByHeapObjectId(String objectId) |
RemoteObject |
getObjectByHeapObjectId(String objectId,
String objectGroup) |
SamplingHeapProfile |
getSamplingProfile() |
EventListener |
onAddHeapSnapshotChunk(EventHandler<AddHeapSnapshotChunk> eventListener) |
EventListener |
onHeapStatsUpdate(EventHandler<HeapStatsUpdate> eventListener)
If heap objects tracking has been started then backend may send update for one or more
fragments
|
EventListener |
onLastSeenObjectId(EventHandler<LastSeenObjectId> eventListener)
If heap objects tracking has been started then backend regularly sends a current value for last
seen object id and corresponding timestamp.
|
EventListener |
onReportHeapSnapshotProgress(EventHandler<ReportHeapSnapshotProgress> eventListener) |
EventListener |
onResetProfiles(EventHandler<ResetProfiles> eventListener) |
void |
startSampling() |
void |
startSampling(Double samplingInterval) |
void |
startTrackingHeapObjects() |
void |
startTrackingHeapObjects(Boolean trackAllocations) |
SamplingHeapProfile |
stopSampling() |
void |
stopTrackingHeapObjects() |
void |
stopTrackingHeapObjects(Boolean reportProgress,
Boolean treatGlobalObjectsAsRoots) |
void |
takeHeapSnapshot() |
void |
takeHeapSnapshot(Boolean reportProgress,
Boolean treatGlobalObjectsAsRoots) |
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, Boolean treatGlobalObjectsAsRoots)
reportProgress - If true 'reportHeapSnapshotProgress' events will be generated while
snapshot is being taken when the tracking is stopped.treatGlobalObjectsAsRoots - void takeHeapSnapshot()
void takeHeapSnapshot(Boolean reportProgress, Boolean treatGlobalObjectsAsRoots)
reportProgress - If true 'reportHeapSnapshotProgress' events will be generated while
snapshot is being taken.treatGlobalObjectsAsRoots - If true, a raw snapshot without artifical roots will be
generatedEventListener 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 © 2021 Kenan Klisura. All rights reserved.