Skip to main content

profile_api_async

Function
This function is defined in the profiler module.
Decorator to profile an async function as an API call.

Signature

Parameters

Optional
No description available.

Returns

Any
The result of the operation.

Uses

  • Profiler.is_enabled
  • fn
  • time.perf_counter
  • Profiler.record_api_call
  • functools.wraps
  • decorator

Source

View on GitHub

praisonai/profiler.py at line 1040

Async Feature

Background Tasks

Async Jobs

Agent Profiles

Profiling