Package 

Class BugsnagPerformanceKt

    • Method Summary

      Modifier and Type Method Description
      final static <R extends Any> R measureSpan(String name, Function0<R> block) A utility method for Kotlin apps which compliments the standard Kotlin measureTime, measureTimeMillis, and measureNanoTime methods.
      • Methods inherited from class java.lang.Object

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

      • measureSpan

         final static <R extends Any> R measureSpan(String name, Function0<R> block)

        A utility method for Kotlin apps which compliments the standard Kotlin measureTime, measureTimeMillis, and measureNanoTime methods. This method has the same behaviour as:

        BugsnagPerformance.startSpan(name).use { block() }
        Parameters:
        name - the name of the block to measure
        block - the block of code to measure the execution time