xtrace_sdk.x_vec.utils.bench¶
Lightweight benchmark context manager.
Enabled by setting the XTRACE_BENCHMARK environment variable to 1 or true.
When disabled, bench() is a zero-cost no-op.
Attributes¶
Functions¶
|
Time a block and log the result when |
Module Contents¶
- xtrace_sdk.x_vec.utils.bench._log¶
- xtrace_sdk.x_vec.utils.bench._ENABLED¶