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 Summary
Fields Modifier and Type Field Description static int
OBJECT_CACHE_MODE_DEFAULT
static int
OBJECT_CACHE_MODE_DISABLE
static int
OBJECT_CACHE_MODE_LIMITED
-
Method Summary
Modifier and Type Method Description static int
cleanCallerCount()
Same as calling finalizedCount(null)static int
cleanCallerCount(String className)
Retrieve number of calls to QtJambiObject.finalize()static int
destructorFunctionCalledCount()
Same as calling destructorFunctionCalledCount(null)static int
destructorFunctionCalledCount(String name)
Retrieves the counter for calls to destructor functions (used by QtJambiLink to delete native data)static void
disableCounters()
static int
disposeCalledCount()
Same as calling disposeCalledCount(null)static int
disposeCalledCount(String className)
Retrieves the counter for calls to dispose() (Qt Jambi objects that have been explicitly deleted by Java code)static void
enableCounters()
static void
flushErr()
static void
flushOut()
static int
getObjectCacheMode()
static boolean
hasDebugTools()
Returns true if the debug tools functions are compiled in and false if not.static boolean
hasDeleteLaterEvents()
static int
linkConstructedCount()
Same as calling linkDestroyedCount(null)static int
linkConstructedCount(String className)
Retrieves the counter for calls to the QtJambiLink destructorstatic int
linkDestroyedCount()
Same as calling linkDestroyedCount(null)static int
linkDestroyedCount(String className)
Retrieves the counter for calls to the QtJambiLink destructorstatic int
objectCount()
Returns values for memory object counts of internal parts of QtJambi.static int
objectInvalidatedCount()
Same as calling disposedCalledCount(null)static int
objectInvalidatedCount(String className)
Retrieves the counter for calls to disposed() (Qt Jambi objects that have been invalidated)static int
pointerContainerDestroyedCount()
Same as calling pointerContainerDestroyedCount(null)static int
pointerContainerDestroyedCount(String className)
Retrieves the counter for calls to the PointerContainer destructorstatic void
reset_cleanCallerCount()
Same as calling resetFinalizedCount(null)static void
reset_cleanCallerCount(String className)
Resets the counter for calls to QtJambiObject.finalize()static void
reset_destructorFunctionCalledCount()
Same as calling resetDestructorFunctionCalledCount(null)static void
reset_destructorFunctionCalledCount(String className)
Resets the counter for calls to destructor functions (used by QtJambiLink to delete native data)static void
reset_disposeCalledCount()
Same as calling resetDisposeCalledCount(null)static void
reset_disposeCalledCount(String className)
Resets the counter for calls to dispose() (Qt Jambi objects that have been explicitly deleted by Java code)static void
reset_linkConstructedCount()
Same as calling resetLinkDestroyedCount(null)static void
reset_linkConstructedCount(String className)
Resets the counter for calls to the QtJambiLink destructorstatic void
reset_linkDestroyedCount()
Same as calling resetLinkDestroyedCount(null)static void
reset_linkDestroyedCount(String className)
Resets the counter for calls to the QtJambiLink destructorstatic void
reset_objectInvalidatedCount()
Same as calling resetDisposedCalledCount(null)static void
reset_objectInvalidatedCount(String className)
Resets the counter for calls to disposed() (Qt Jambi objects that have been invalidated)static void
reset_pointerContainerDestroyedCount()
Same as calling reset_pointerContainerDestroyedCount(null)static void
reset_pointerContainerDestroyedCount(String className)
Resets the counter for calls to the PointerContainer destructorstatic void
reset_shellDestroyedCount()
Same as calling resetLinkDestroyedCount(null)static void
reset_shellDestroyedCount(String className)
Resets the counter for calls to the QtJambiLink destructorstatic void
reset_shellDestructorCalledCount()
Same as calling resetShellDestructorCalledCount(null)static void
reset_shellDestructorCalledCount(String className)
Resets the counter for calls to shell class destructors in polymorphic classes.static void
reset_userDataDestroyedCount()
Same as calling resetUserDataDestroyedCount(null)static void
reset_userDataDestroyedCount(String className)
Reset number of calls to the destructor of QtJambiUserDatastatic void
setObjectCacheMode(int objectCacheMode)
static int
shellDestroyedCount()
Same as calling linkDestroyedCount(null)static int
shellDestroyedCount(String className)
Retrieves the counter for calls to the QtJambiLink destructorstatic int
shellDestructorCalledCount()
Same as calling shellDestructorCalledCount(null)static int
shellDestructorCalledCount(String className)
Retrieves the counter for calls to shell class destructors in polymorphic classes.static int
userDataDestroyedCount()
Same as calling userDataDestroyedCount(null)static int
userDataDestroyedCount(String className)
Retrieve number of calls to the destructor of QtJambiUserData
-
Field Details
-
OBJECT_CACHE_MODE_DISABLE
public static final int OBJECT_CACHE_MODE_DISABLE- See Also:
- Constant Field Values
-
OBJECT_CACHE_MODE_LIMITED
public static final int OBJECT_CACHE_MODE_LIMITED- See Also:
- Constant Field Values
-
OBJECT_CACHE_MODE_DEFAULT
public static final int OBJECT_CACHE_MODE_DEFAULT- See Also:
- Constant Field Values
-
-
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
Resets the counter for calls to QtJambiObject.finalize()- Parameters:
className
- The class name for which to reset, or null for all.
-
cleanCallerCount
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
Reset number of calls to the destructor of QtJambiUserData- Parameters:
className
- The class name for which to reset, or null for all.
-
userDataDestroyedCount
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
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
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
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
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
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
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
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
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
Resets the counter for calls to the QtJambiLink destructor- Parameters:
className
- The name of class for which to reset or null for all
-
linkDestroyedCount
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
Resets the counter for calls to the QtJambiLink destructor- Parameters:
className
- The name of class for which to reset or null for all
-
shellDestroyedCount
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
Resets the counter for calls to the QtJambiLink destructor- Parameters:
className
- The name of class for which to reset or null for all
-
linkConstructedCount
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
Resets the counter for calls to the PointerContainer destructor- Parameters:
className
- The name of class for which to reset or null for all
-
pointerContainerDestroyedCount
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)
-