Skip to main content

profile_detailed

Function
This function is defined in the profiler module.
Decorator for detailed cProfile profiling.

Signature

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

Parameters

func
Optional
No description available.

Returns

Returns
Any
The result of the operation.

Usage

@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
  • s.getvalue

Source

View on GitHub

praisonai/profiler.py at line 1069