NoTrace

object NoTrace : Trace

No-op implementation of Trace.

Properties

Link copied to clipboard
open override val name: TraceName

Unique name for the trace.

Functions

Link copied to clipboard
open override fun attribute(key: TraceKey, block: (Traceable?) -> TraceValue?): NoTrace

Add an attribute to your trace.

Link copied to clipboard
open override fun attributeCustom(key: TraceKey, block: (Traceable?) -> Traceable?): NoTrace

Add a custom attribute to your trace.

Link copied to clipboard
open override fun counter(key: TraceKey, block: (Long) -> Long): NoTrace

Increment a counter as part of your trace.

Link copied to clipboard
open override fun start(): NoTrace

Start the timer for the performance trace.

open fun start(source: (Traceable?) -> TraceValue?): Trace

Start the trace with a "source" attribute.

Link copied to clipboard
open override fun stop()

Completes the trace and this trace can be discarded.

open fun stop(reason: (Traceable?) -> TraceValue?)

Stop the trace with a "reason" attribute.