View source on GitHub |
Delegates to the current global TracingProvider
.
tff.profiler.trace(
fn=None, **trace_kwargs
)
Note that this function adds a layer of indirection so that the decoration happens when the method is executed. This is necessary so that the current TracingProvider is used.
Args | |
---|---|
fn
|
Function to decorate. |
**trace_kwargs
|
Tracing options. Supported options differ by tracing provider. |
Returns | |
---|---|
Decorated instance of fn. |