java.lang.Object
io.qt.internal.QtJambiDebugTools
Special debugging methods used by autoests which are only available
if Qt Jambi is compiled with QTJAMBI_DEBUG_TOOLS defined.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic intSame as calling finalizedCount(null)static intcleanCallerCount(String className) Retrieve number of calls to QtJambiObject.finalize()static intSame as calling destructorFunctionCalledCount(null)static intRetrieves the counter for calls to destructor functions (used by QtJambiLink to delete native data)static voidstatic intSame as calling disposeCalledCount(null)static intdisposeCalledCount(String className) Retrieves the counter for calls to dispose() (Qt Jambi objects that have been explicitly deleted by Java code)static voidstatic voidflushErr()static voidflushOut()static intstatic booleanReturns true if the debug tools functions are compiled in and false if not.static booleanstatic intSame as calling linkDestroyedCount(null)static intlinkConstructedCount(String className) Retrieves the counter for calls to the QtJambiLink destructorstatic intSame as calling linkDestroyedCount(null)static intlinkDestroyedCount(String className) Retrieves the counter for calls to the QtJambiLink destructorstatic intReturns values for memory object counts of internal parts of QtJambi.static intSame as calling disposedCalledCount(null)static intobjectInvalidatedCount(String className) Retrieves the counter for calls to disposed() (Qt Jambi objects that have been invalidated)static intSame as calling pointerContainerDestroyedCount(null)static intpointerContainerDestroyedCount(String className) Retrieves the counter for calls to the PointerContainer destructorstatic voidSame as calling resetFinalizedCount(null)static voidreset_cleanCallerCount(String className) Resets the counter for calls to QtJambiObject.finalize()static voidSame as calling resetDestructorFunctionCalledCount(null)static voidreset_destructorFunctionCalledCount(String className) Resets the counter for calls to destructor functions (used by QtJambiLink to delete native data)static voidSame as calling resetDisposeCalledCount(null)static voidreset_disposeCalledCount(String className) Resets the counter for calls to dispose() (Qt Jambi objects that have been explicitly deleted by Java code)static voidSame as calling resetLinkDestroyedCount(null)static voidreset_linkConstructedCount(String className) Resets the counter for calls to the QtJambiLink destructorstatic voidSame as calling resetLinkDestroyedCount(null)static voidreset_linkDestroyedCount(String className) Resets the counter for calls to the QtJambiLink destructorstatic voidSame as calling resetDisposedCalledCount(null)static voidreset_objectInvalidatedCount(String className) Resets the counter for calls to disposed() (Qt Jambi objects that have been invalidated)static voidSame as calling reset_pointerContainerDestroyedCount(null)static voidreset_pointerContainerDestroyedCount(String className) Resets the counter for calls to the PointerContainer destructorstatic voidSame as calling resetLinkDestroyedCount(null)static voidreset_shellDestroyedCount(String className) Resets the counter for calls to the QtJambiLink destructorstatic voidSame as calling resetShellDestructorCalledCount(null)static voidreset_shellDestructorCalledCount(String className) Resets the counter for calls to shell class destructors in polymorphic classes.static voidSame as calling resetUserDataDestroyedCount(null)static voidreset_userDataDestroyedCount(String className) Reset number of calls to the destructor of QtJambiUserDatastatic voidsetObjectCacheMode(int objectCacheMode) static intSame as calling linkDestroyedCount(null)static intshellDestroyedCount(String className) Retrieves the counter for calls to the QtJambiLink destructorstatic intSame as calling shellDestructorCalledCount(null)static intshellDestructorCalledCount(String className) Retrieves the counter for calls to shell class destructors in polymorphic classes.static intSame as calling userDataDestroyedCount(null)static intuserDataDestroyedCount(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:
-
OBJECT_CACHE_MODE_LIMITED
public static final int OBJECT_CACHE_MODE_LIMITED- See Also:
-
OBJECT_CACHE_MODE_DEFAULT
public static final int OBJECT_CACHE_MODE_DEFAULT- See Also:
-
-
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)
-