List heapList = null;
@Override
public List getObjects() {
final IHeapDumpHProfRecord record=view.getHeapRecord();
if(record==null) return new LinkedList();
if (heapList == null) {
Iterator iter = new Iterator(){
int latestRecord=0;
private JavaObject nextObject=null;
@Override
public boolean hasNext() {
if(nextObject!=null) return true;
while(true) {
IHProfRecord subRecord=record.getSubRecord(latestRecord);
if(subRecord==null) {
return false;
}
latestRecord++;