Module qtjambi

Class QtJambiDebugTools

java.lang.Object
io.qt.internal.QtJambiDebugTools

public final class QtJambiDebugTools
extends Object
Special debugging methods used by autoests which are only available if Qt Jambi is compiled with QTJAMBI_DEBUG_TOOLS defined.
  • Field Details

  • Method Details

    • hasDebugTools

      public static boolean hasDebugTools()
      Returns true if the debug tools functions are compiled in and false if not.
    • enableCounters

      public static void enableCounters()
    • disableCounters

      public static void disableCounters()
    • reset_cleanCallerCount

      public static void reset_cleanCallerCount()
      Same as calling resetFinalizedCount(null)
    • cleanCallerCount

      public static int cleanCallerCount()
      Same as calling finalizedCount(null)
    • reset_cleanCallerCount

      public static void reset_cleanCallerCount​(String className)
      Resets the counter for calls to QtJambiObject.finalize()
      Parameters:
      className - The class name for which to reset, or null for all.
    • cleanCallerCount

      public static int cleanCallerCount​(String className)
      Retrieve number of calls to QtJambiObject.finalize()
      Parameters:
      className - The class name for which to retrieve, or null for all.
      Returns:
      The number of QtJambiObjects that have been finalized
    • reset_userDataDestroyedCount

      public static void reset_userDataDestroyedCount​(String className)
      Reset number of calls to the destructor of QtJambiUserData
      Parameters:
      className - The class name for which to reset, or null for all.
    • userDataDestroyedCount

      public static int userDataDestroyedCount​(String className)
      Retrieve number of calls to the destructor of QtJambiUserData
      Parameters:
      className - The class name for which to retrieve, or null for all.
      Returns:
      The number of QObjects that have been destroyed
    • reset_userDataDestroyedCount

      public static void reset_userDataDestroyedCount()
      Same as calling resetUserDataDestroyedCount(null)
    • userDataDestroyedCount

      public static int userDataDestroyedCount()
      Same as calling userDataDestroyedCount(null)
    • reset_destructorFunctionCalledCount

      public static void reset_destructorFunctionCalledCount()
      Same as calling resetDestructorFunctionCalledCount(null)
    • destructorFunctionCalledCount

      public static int destructorFunctionCalledCount()
      Same as calling destructorFunctionCalledCount(null)
    • reset_destructorFunctionCalledCount

      public static void reset_destructorFunctionCalledCount​(String className)
      Resets the counter for calls to destructor functions (used by QtJambiLink to delete native data)
      Parameters:
      className - The name of the class for which to reset or null for all
    • destructorFunctionCalledCount

      public static int destructorFunctionCalledCount​(String name)
      Retrieves the counter for calls to destructor functions (used by QtJambiLink to delete native data)
      Parameters:
      className - The name of the class for which to retrieve or null for all
      Returns:
      The number of times destructor functions have been called
    • reset_shellDestructorCalledCount

      public static void reset_shellDestructorCalledCount​(String className)
      Resets the counter for calls to shell class destructors in polymorphic classes.
      Parameters:
      className - The name of the class for which to reset or null for all
    • shellDestructorCalledCount

      public static int shellDestructorCalledCount​(String className)
      Retrieves the counter for calls to shell class destructors in polymorphic classes.
      Parameters:
      className - The name of the class for which to retrieve or null for all
      Returns:
      The number of times a shell class destructor has been called
    • reset_shellDestructorCalledCount

      public static void reset_shellDestructorCalledCount()
      Same as calling resetShellDestructorCalledCount(null)
    • shellDestructorCalledCount

      public static int shellDestructorCalledCount()
      Same as calling shellDestructorCalledCount(null)
    • reset_objectInvalidatedCount

      public static void reset_objectInvalidatedCount​(String className)
      Resets the counter for calls to disposed() (Qt Jambi objects that have been invalidated)
      Parameters:
      className - The name of the class for which to reset or null for all
    • objectInvalidatedCount

      public static int objectInvalidatedCount​(String className)
      Retrieves the counter for calls to disposed() (Qt Jambi objects that have been invalidated)
      Parameters:
      className - The name of the class for which to reset or null for all
    • reset_objectInvalidatedCount

      public static void reset_objectInvalidatedCount()
      Same as calling resetDisposedCalledCount(null)
    • objectInvalidatedCount

      public static int objectInvalidatedCount()
      Same as calling disposedCalledCount(null)
    • reset_disposeCalledCount

      public static void reset_disposeCalledCount​(String className)
      Resets the counter for calls to dispose() (Qt Jambi objects that have been explicitly deleted by Java code)
      Parameters:
      className - The name of class for which to reset or null for all
    • disposeCalledCount

      public static int disposeCalledCount​(String className)
      Retrieves the counter for calls to dispose() (Qt Jambi objects that have been explicitly deleted by Java code)
      Parameters:
      className - The name of class for which to reset or null for all
    • reset_disposeCalledCount

      public static void reset_disposeCalledCount()
      Same as calling resetDisposeCalledCount(null)
    • disposeCalledCount

      public static int disposeCalledCount()
      Same as calling disposeCalledCount(null)
    • reset_linkDestroyedCount

      public static void reset_linkDestroyedCount​(String className)
      Resets the counter for calls to the QtJambiLink destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • linkDestroyedCount

      public static int linkDestroyedCount​(String className)
      Retrieves the counter for calls to the QtJambiLink destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • reset_linkDestroyedCount

      public static void reset_linkDestroyedCount()
      Same as calling resetLinkDestroyedCount(null)
    • linkDestroyedCount

      public static int linkDestroyedCount()
      Same as calling linkDestroyedCount(null)
    • reset_shellDestroyedCount

      public static void reset_shellDestroyedCount​(String className)
      Resets the counter for calls to the QtJambiLink destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • shellDestroyedCount

      public static int shellDestroyedCount​(String className)
      Retrieves the counter for calls to the QtJambiLink destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • reset_shellDestroyedCount

      public static void reset_shellDestroyedCount()
      Same as calling resetLinkDestroyedCount(null)
    • shellDestroyedCount

      public static int shellDestroyedCount()
      Same as calling linkDestroyedCount(null)
    • reset_linkConstructedCount

      public static void reset_linkConstructedCount​(String className)
      Resets the counter for calls to the QtJambiLink destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • linkConstructedCount

      public static int linkConstructedCount​(String className)
      Retrieves the counter for calls to the QtJambiLink destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • reset_linkConstructedCount

      public static void reset_linkConstructedCount()
      Same as calling resetLinkDestroyedCount(null)
    • linkConstructedCount

      public static int linkConstructedCount()
      Same as calling linkDestroyedCount(null)
    • reset_pointerContainerDestroyedCount

      public static void reset_pointerContainerDestroyedCount​(String className)
      Resets the counter for calls to the PointerContainer destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • pointerContainerDestroyedCount

      public static int pointerContainerDestroyedCount​(String className)
      Retrieves the counter for calls to the PointerContainer destructor
      Parameters:
      className - The name of class for which to reset or null for all
    • reset_pointerContainerDestroyedCount

      public static void reset_pointerContainerDestroyedCount()
      Same as calling reset_pointerContainerDestroyedCount(null)
    • pointerContainerDestroyedCount

      public static int pointerContainerDestroyedCount()
      Same as calling pointerContainerDestroyedCount(null)
    • objectCount

      public static int objectCount()
      Returns values for memory object counts of internal parts of QtJambi. The main use is in trying to find memory leaks.
    • flushOut

      public static void flushOut()
    • flushErr

      public static void flushErr()
    • hasDeleteLaterEvents

      public static boolean hasDeleteLaterEvents()
    • getObjectCacheMode

      public static int getObjectCacheMode()
    • setObjectCacheMode

      public static void setObjectCacheMode​(int objectCacheMode)