Methods Summary |
---|
public final void | addClass(long id, ClassObj theClass)
mCurrentHeap.addClass(id, theClass);
|
public final void | addInstance(long id, Instance instance)
mCurrentHeap.addInstance(id, instance);
|
public final void | addRoot(RootObj root)
mCurrentHeap.addRoot(root);
|
public final void | addStackFrame(StackFrame theFrame)
mCurrentHeap.addStackFrame(theFrame);
|
public final void | addStackTrace(StackTrace theTrace)
mCurrentHeap.addStackTrace(theTrace);
|
public final void | addThread(ThreadObj thread, int serialNumber)
mCurrentHeap.addThread(thread, serialNumber);
|
public final void | dumpInstanceCounts()
for (Heap heap: mHeaps.values()) {
System.out.println(
"+------------------ instance counts for heap: " + heap.mName);
heap.dumpInstanceCounts();
}
|
public final void | dumpSizes()
for (Heap heap: mHeaps.values()) {
System.out.println(
"+------------------ sizes for heap: " + heap.mName);
heap.dumpSizes();
}
|
public final void | dumpSubclasses()
for (Heap heap: mHeaps.values()) {
System.out.println(
"+------------------ subclasses for heap: " + heap.mName);
heap.dumpSubclasses();
}
|
public final ClassObj | findClass(long id)
for (Heap heap: mHeaps.values()) {
ClassObj theClass = heap.getClass(id);
if (theClass != null) {
return theClass;
}
}
return null;
|
public final ClassObj | findClass(java.lang.String name)
for (Heap heap: mHeaps.values()) {
ClassObj theClass = heap.getClass(name);
if (theClass != null) {
return theClass;
}
}
return null;
|
public final Instance | findReference(long id)
for (Heap heap: mHeaps.values()) {
Instance instance = heap.getInstance(id);
if (instance != null) {
return instance;
}
}
// Couldn't find an instance of a class, look for a class object
return findClass(id);
|
public Heap | getHeap(int id)
return mHeaps.get(id);
|
public Heap | getHeap(java.lang.String name)
for (Heap heap: mHeaps.values()) {
if (heap.mName.equals(name)) {
return heap;
}
}
return null;
|
public final StackFrame | getStackFrame(long id)
return mCurrentHeap.getStackFrame(id);
|
public final StackTrace | getStackTrace(int traceSerialNumber)
return mCurrentHeap.getStackTrace(traceSerialNumber);
|
public final StackTrace | getStackTraceAtDepth(int traceSerialNumber, int depth)
return mCurrentHeap.getStackTraceAtDepth(traceSerialNumber, depth);
|
public final ThreadObj | getThread(int serialNumber)
return mCurrentHeap.getThread(serialNumber);
|
public final void | resolveReferences()
for (Heap heap: mHeaps.values()) {
heap.resolveInstanceRefs(this);
heap.resolveClassStatics(this);
heap.resolveRoots(this);
}
|
public Heap | setHeapTo(int id, java.lang.String name)
Heap heap = mHeaps.get(id);
if (heap == null) {
heap = new Heap(name);
heap.mState = this;
mHeaps.put(id, heap);
}
mCurrentHeap = heap;
return mCurrentHeap;
|
public Heap | setToDefaultHeap()
return setHeapTo(0, "default");
|