[Tutor] Timing a python program
Ben Finney
ben+python at benfinney.id.au
Fri Jan 16 09:51:39 CET 2015
CL Talk <cltalk at gmail.com> writes:
> I am trying to see how I can time the whole program as well as various
> functions that are part of the program.
The term for this dynamic timing introspection of parts of the system is
“program profiling”; you are seeking a “profiler”
<URL:https://en.wikipedia.org/wiki/Profiling_%28computer_programming%29>.
Python has profilers installed by default in the standard library
<URL:https://docs.python.org/3/library/profile.html>. See that
documentation for how to profile your program.
--
\ “It is … incumbent upon us to recognize that it is |
`\ inappropriate for religion to play any role in issues of state |
_o__) [of] a modern democracy.” —Lawrence M. Krauss, 2012-05-28 |
Ben Finney
More information about the Tutor
mailing list