Profile Detailed • AI Agents Framework

profile_detailed: Decorator for detailed cProfile profiling.

profile_detailed

Function

</div>

This function is defined in the profiler module.

Decorator for detailed cProfile profiling.

Signature

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

Parameters

ParamField Optional[Callable]

No description available.

Returns

ResponseField Any

The result of the operation.

Usage

python
@profile_detailed
    def heavy_computation():
        pass

Uses

  • Profiler.is_enabled
  • fn
  • cProfile.Profile
  • pr.enable
  • pr.disable
  • io.StringIO
  • sort_stats
  • pstats.Stats
  • ps.print_stats
  • Profiler.record_cprofile

Source

View on GitHub

praisonai/profiler.py at line 1204


Related Documentation