cprofile • AI Agents Framework

cprofile: Context manager for cProfile profiling.

cprofile

Method

</div>

This is a method of the Profiler class in the profiler module.

Context manager for cProfile profiling.

Signature

python
def cprofile(name: str) -> Any

Parameters

ParamField str

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • cProfile.Profile
  • pr.enable
  • pr.disable
  • io.StringIO
  • sort_stats
  • pstats.Stats
  • ps.print_stats
  • s.getvalue
  • time.time

Source

View on GitHub

praisonai/profiler.py at line 646


Related Documentation