diff --git a/modules/juce_core/native/juce_android_JNIHelpers.h b/modules/juce_core/native/juce_android_JNIHelpers.h index c0a2b2ad7f..2e4e541be9 100644 --- a/modules/juce_core/native/juce_android_JNIHelpers.h +++ b/modules/juce_core/native/juce_android_JNIHelpers.h @@ -346,6 +346,14 @@ DECLARE_JNI_CLASS (AndroidBitmap, "android/graphics/Bitmap"); DECLARE_JNI_CLASS (AndroidBitmapConfig, "android/graphics/Bitmap$Config"); #undef JNI_CLASS_MEMBERS +#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \ + STATICMETHOD (dumpReferenceTables, "dumpReferenceTables", "()V") + + DECLARE_JNI_CLASS (AndroidDebug, "android/os/Debug"); +#undef JNI_CLASS_MEMBERS + +#define JUCE_LOG_JNI_REFERENCES_TABLE getEnv()->CallStaticVoidMethod (AndroidDebug, AndroidDebug.dumpReferenceTables); + #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \ STATICMETHOD (createChooser, "createChooser", "(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;") \ METHOD (addCategory, "addCategory", "(Ljava/lang/String;)Landroid/content/Intent;") \