-
public final class SafeTraceFunctionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TsafeTrace(Function0<String> label, Function0<T> block)Allows tracing of a block of code without any overhead when isTraceable is false. final static <T extends Any> TsafeTrace(String label, Function0<T> block)Allows tracing of a block of code -
-
Method Detail
-
safeTrace
final static <T extends Any> T safeTrace(Function0<String> label, Function0<T> block)
Allows tracing of a block of code without any overhead when isTraceable is false.
label a string producing lambda if the label is computed dynamically. If the label isn't dynamic, use the safeTrace which directly takes a string instead.
-
-
-
-