com.jrockit.memleak.value
Class HeapHistogram

java.lang.Object
  extended by com.jrockit.memleak.value.HeapInfo
      extended by com.jrockit.memleak.value.HeapHistogram
All Implemented Interfaces:
IHeapHistogram, IHeapInfo, java.lang.Iterable<ITypeHeapInfo<IClassInfo>>

public class HeapHistogram
extends HeapInfo
implements IHeapHistogram

A heap histogram holds an array of ITypeHeapInfo objects which gives statistics about the contents of types on the java heap.

Since:
Creation date: 2004-aug-30
Author:
Staffan Larsen, Helena Åberg Östlund

Field Summary
 
Fields inherited from class com.jrockit.memleak.value.HeapInfo
growthRate, numInstances, size
 
Fields inherited from interface com.jrockit.memleak.IHeapInfo
EMPTY_ARRAY
 
Constructor Summary
HeapHistogram(int numInstances, long size, float growthRate, long creationMillis, java.util.List<ITypeHeapInfo<IClassInfo>> heapInfos, java.util.Collection<ITypeHeapInfo<? extends INamedType>> groupedHeapInfos)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.util.Collection<ITypeHeapInfo<? extends INamedType>> getGroupedTypeHeapInfos()
           
 java.util.Collection<ITypeHeapInfo<IClassInfo>> getTypeHeapInfos()
           
 int hashCode()
           
 java.util.Iterator<ITypeHeapInfo<IClassInfo>> iterator()
           
 
Methods inherited from class com.jrockit.memleak.value.HeapInfo
equals, getGrowthRate, getNumberOfInstances, getSizeOfInstances, getTime, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jrockit.memleak.IHeapInfo
getGrowthRate, getNumberOfInstances, getSizeOfInstances, getTime
 

Constructor Detail

HeapHistogram

public HeapHistogram(int numInstances,
                     long size,
                     float growthRate,
                     long creationMillis,
                     java.util.List<ITypeHeapInfo<IClassInfo>> heapInfos,
                     java.util.Collection<ITypeHeapInfo<? extends INamedType>> groupedHeapInfos)
Parameters:
numInstances -
size -
growthRate -
creationMillis -
heapInfos -
groupedHeapInfos -
Method Detail

iterator

public java.util.Iterator<ITypeHeapInfo<IClassInfo>> iterator()
Specified by:
iterator in interface java.lang.Iterable<ITypeHeapInfo<IClassInfo>>

getTypeHeapInfos

public java.util.Collection<ITypeHeapInfo<IClassInfo>> getTypeHeapInfos()
Specified by:
getTypeHeapInfos in interface IHeapHistogram
Returns:
a collection of ITypeHeapInfo:s.

getGroupedTypeHeapInfos

public java.util.Collection<ITypeHeapInfo<? extends INamedType>> getGroupedTypeHeapInfos()
Specified by:
getGroupedTypeHeapInfos in interface IHeapHistogram
Returns:
a collection of ITypeHeapInfo:s.

hashCode

public int hashCode()
Specified by:
hashCode in class HeapInfo

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class HeapInfo


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.