public class ReferenceTreeModel extends Object
Modifier and Type | Method and Description |
---|---|
static ReferenceTreeModel |
buildReferenceTree(IItemCollection items)
Creates and returns a ReferenceTreeModel object that represents the total reference tree
created by Old Object Samples and their aggregated reference chains.
|
List<ReferenceTreeObject> |
getLeakCandidates(double relevanceThreshold)
Performs a leak relevance calculation on every object in the reference tree and sets this
value to the respective objects.
|
int |
getLeakCountInRange(IRange<IQuantity> timerange,
ReferenceTreeObject referenceTreeObject)
A helper method to calculate number of Referenced Object within specified period.
|
List<ReferenceTreeObject> |
getLeakObjects() |
Collection<ReferenceTreeObject> |
getLeakObjects(IRange<IQuantity> timerange) |
ReferenceTreeObject |
getObject(IQuantity address) |
Map<IMCType,List<ReferenceTreeObject>> |
getObjectsByType() |
List<ReferenceTreeObject> |
getRootObjects() |
Collection<ReferenceTreeObject> |
getRootObjects(IRange<IQuantity> timerange) |
public static ReferenceTreeModel buildReferenceTree(IItemCollection items)
items
- should be a filtered item collection containing only the Old Object Sample eventspublic List<ReferenceTreeObject> getRootObjects()
public List<ReferenceTreeObject> getLeakCandidates(double relevanceThreshold)
relevanceThreshold
- the threshold used to determine which objects to return as interesting memory leak
candidatespublic Map<IMCType,List<ReferenceTreeObject>> getObjectsByType()
public Collection<ReferenceTreeObject> getRootObjects(IRange<IQuantity> timerange)
timerange
- a range of time that specifies which root objects to retrievepublic Collection<ReferenceTreeObject> getLeakObjects(IRange<IQuantity> timerange)
timerange
- a range of time that specifies which root objects to retrievepublic int getLeakCountInRange(IRange<IQuantity> timerange, ReferenceTreeObject referenceTreeObject)
timerange
- a range of time that specifies which root objects to retrievereferenceTreeObject
- leak candidatepublic List<ReferenceTreeObject> getLeakObjects()
public ReferenceTreeObject getObject(IQuantity address)
address
- the address of a specific object to retrieve from the reference treeCopyright © 2020. All rights reserved.