Package 

Object LeakCanaryProcess


  • 
    public class LeakCanaryProcess
    
                        

    Used to determine whether the current process is the LeakCanary analyzer process. By depending on the leakcanary-android-process artifact instead of the leakcanary-android, LeakCanary will automatically run its analysis in a separate process.

    As such, you'll need to be careful to do any custom configuration of LeakCanary in both the main process and the analyzer process.

    • Method Summary

      Modifier and Type Method Description
      final Boolean isInAnalyzerProcess(Context context) Whether the current process is the process running the heap analyzer, which is a different process than the normal app process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isInAnalyzerProcess

         final Boolean isInAnalyzerProcess(Context context)

        Whether the current process is the process running the heap analyzer, which is a different process than the normal app process.