FileDocCategorySizeDatePackage
DdmVmInternal.javaAPI DocAndroid 1.5 API2570Wed May 06 22:41:04 BST 2009org.apache.harmony.dalvik.ddmc

DdmVmInternal

public class DdmVmInternal extends Object
Declarations for some VM-internal DDM stuff.

Fields Summary
Constructors Summary
private DdmVmInternal()

Methods Summary
public static native voidenableRecentAllocations(boolean enable)
Enable or disable "recent allocation" tracking.

public static native booleangetRecentAllocationStatus()

public static native byte[]getRecentAllocations()
Fill a buffer with data on recent heap allocations.

public static native java.lang.StackTraceElement[]getStackTraceById(int threadId)
Get a stack trace for the specified thread ID. The ID can be found in the data from getThreadStats.

public static native byte[]getThreadStats()
Get status info for all threads. This is for the THST chunk. Returns a byte array with the THST data, or null if something went wrong.

public static native booleanheapInfoNotify(int when)
Enable heap info updates. This is built into the VM, since that's where the heap is managed.

param
when when to send the next HPIF chunk
return
true on success. false if 'when' is bad or if there was an internal error.

public static native booleanheapSegmentNotify(int when, int what, boolean isNative)
Enable heap segment updates for the java (isNative == false) or native (isNative == true) heap. This is built into the VM, since that's where the heap is managed.

public static native voidthreadNotify(boolean enable)
Enable thread notification. This is built into the VM, since that's where threads get managed.