Python/Profilers: Difference between revisions

From Omnia
Jump to navigation Jump to search
m (Kenneth moved page Python/Profiling to Python/Profilers)
No edit summary
Line 1: Line 1:
== Profiling ==
== Python Profiling with Profilers ==





Revision as of 07:47, 4 August 2024

Python Profiling with Profilers

https://docs.python.org/3/library/profile.html

The files cProfile and profile can also be invoked as a script to profile another script. For example:

python -m cProfile [-o output_file] [-s sort_order] (-m module | myscript.py)