A collection of decorators for profiling, timing, and tracing individual functions. Current version 1.13.0, requires Python >=3.7. Release cadence is intermittent, with minor updates.
pip install profilehooksVerified import paths — ran on the pinned version, not inferred.
Basic usage of @timecall and @profile decorators.
Import sys and direct output: @timecall(stdout=sys.stdout) or use logging.
Replace @cover with @coverage.
Do not use @profile on async functions; use @timecall or manual profiling.
Use 'from profilehooks import coverage' instead of 'cover'.
Remove @profile from async functions, or use @timecall with appropriate handling.
No dependency data recorded yet.