Profile Async • AI Agents Framework

profile_async: Decorator to profile an async function.

profile_async

Function

</div>

This function is defined in the profiler module.

Decorator to profile an async function.

Signature

python
def profile_async(func: Optional[Callable]) -> Any

Parameters

ParamField Optional[Callable]

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • Profiler.is_enabled
  • fn
  • time.time
  • Profiler.record_timing
  • Profiler.record_flow
  • functools.wraps
  • decorator

Source

View on GitHub

praisonai/profiler.py at line 1022


Related Documentation