Lines Matching refs:cProfile
20 :mod:`cProfile` and :mod:`profile` provide :dfn:`deterministic profiling` of
28 1. :mod:`cProfile` is recommended for most users; it's a C extension with
36 :mod:`cProfile`, but which adds significant overhead to profiled programs.
54 The :mod:`profile` and :mod:`cProfile` modules export the same interface, so
55 they are mostly interchangeable; :mod:`cProfile` has a much lower overhead but
57 :mod:`cProfile` is really a compatibility layer on top of the internal
82 import cProfile
84 cProfile.run('re.compile("foo|bar")')
86 (Use :mod:`profile` instead of :mod:`cProfile` if the latter is not available on
139 import cProfile
141 cProfile.run('re.compile("foo|bar")', 'restats')
146 The file :mod:`cProfile` can also be invoked as a script to profile another
149 python -m cProfile [-o output_file] [-s sort_order] myscript.py
222 :mod:`profile` and :mod:`cProfile` Module Reference
225 .. module:: cProfile
229 Both the :mod:`profile` and :mod:`cProfile` modules provide the following
258 needed than what the :func:`cProfile.run` function provides.
270 import cProfile, pstats, StringIO
271 pr = cProfile.Profile()
333 corresponding version of :mod:`profile` or :mod:`cProfile`. To be specific,
343 Instead of reading the profile data from a file, a :class:`cProfile.Profile`
367 or :func:`cProfile.run`. Statistics for identically named (re: file, line,
377 on the :class:`profile.Profile` and :class:`cProfile.Profile` classes.
503 * With :mod:`cProfile`, each caller is preceded by three numbers: the
574 :mod:`cProfile`. For this reason, :mod:`profile` provides a means of
639 you are using :class:`profile.Profile` or :class:`cProfile.Profile`,
658 :class:`cProfile.Profile`
665 pr = cProfile.Profile(your_integer_time_func, 0.001)
667 As the :class:`cProfile.Profile` class cannot be calibrated, custom timer