Package 

Class PerfettoProfiler

    • Constructor Summary

      Constructors 
      Constructor Description
      PerfettoProfiler(Context context, ILogger logger, ISentryExecutorService executorService)
    • Method Summary

      Modifier and Type Method Description
      boolean start(long durationMs)
      void endAndCollect(@NotNull() Consumer<File> listener) Cancels the current profiling session.
      • Methods inherited from class java.lang.Object

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

      • PerfettoProfiler

        PerfettoProfiler(Context context, ILogger logger, ISentryExecutorService executorService)
    • Method Detail

      • start

         boolean start(long durationMs)
      • endAndCollect

         void endAndCollect(@NotNull() Consumer<File> listener)

        Cancels the current profiling session. The listener is called with the trace file (or null onerror) once the OS delivers the result. The listener may be called synchronously if the resulthas already arrived, or asynchronously on an OS-managed thread otherwise.