Skip to main content

cprofile

Method
This is a method of the Profiler class in the profiler module.
Context manager for cProfile profiling.

Signature

def cprofile(name: str) -> Any

Parameters

name
str
required
No description available.

Returns

Returns
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