Class DdmVmInternal


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

      • threadNotify

        public static void threadNotify​(boolean enable)
        Enable thread notification. This is built into the VM, since that's where threads get managed.
      • heapInfoNotify

        public static boolean heapInfoNotify​(int when)
        Enable heap info updates. This is built into the VM, since that's where the heap is managed.
        Parameters:
        when - when to send the next HPIF chunk
        Returns:
        true on success. false if 'when' is bad or if there was an internal error.
      • heapSegmentNotify

        public static boolean heapSegmentNotify​(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.
      • getThreadStats

        public static 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.
      • getStackTraceById

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

        public static void enableRecentAllocations​(boolean enable)
        Enable or disable "recent allocation" tracking.
      • getRecentAllocationStatus

        public static boolean getRecentAllocationStatus()
      • getRecentAllocations

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