• Home
  • Raw
  • Download

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
34 :mod:`cProfile`, but which adds significant overhead to profiled programs.
59 import cProfile
61 cProfile.run('re.compile("foo|bar")')
63 (Use :mod:`profile` instead of :mod:`cProfile` if the latter is not available on
116 import cProfile
118 cProfile.run('re.compile("foo|bar")', 'restats')
123 The files :mod:`cProfile` and :mod:`profile` can also be invoked as a script to
126 python -m cProfile [-o output_file] [-s sort_order] (-m module | myscript.py)
136 Added the ``-m`` option to :mod:`cProfile`.
208 :mod:`profile` and :mod:`cProfile` Module Reference
211 .. module:: cProfile
215 Both the :mod:`profile` and :mod:`cProfile` modules provide the following
244 needed than what the :func:`cProfile.run` function provides.
256 import cProfile, pstats, io
258 pr = cProfile.Profile()
269 only in :mod:`cProfile` module. see :ref:`typecontextmanager`)::
271 import cProfile
273 with cProfile.Profile() as pr:
283 Start collecting profiling data. Only in :mod:`cProfile`.
287 Stop collecting profiling data. Only in :mod:`cProfile`.
338 corresponding version of :mod:`profile` or :mod:`cProfile`. To be specific,
348 Instead of reading the profile data from a file, a :class:`cProfile.Profile`
372 or :func:`cProfile.run`. Statistics for identically named (re: file, line,
382 on the :class:`profile.Profile` and :class:`cProfile.Profile` classes.
514 * With :mod:`cProfile`, each caller is preceded by three numbers: the
596 :mod:`cProfile`. For this reason, :mod:`profile` provides a means of
661 you are using :class:`profile.Profile` or :class:`cProfile.Profile`,
680 :class:`cProfile.Profile`
687 pr = cProfile.Profile(your_integer_time_func, 0.001)
689 As the :class:`cProfile.Profile` class cannot be calibrated, custom timer