Home | History | Annotate | Download | only in library

Lines Matching full:pstats

7 **Source code:** :source:`Lib/profile.py` and :source:`Lib/pstats.py`
23 can be formatted into reports via the :mod:`pstats` module.
120 The :class:`pstats.Stats` class reads profile results from a file and formats
130 ``-s`` specifies one of the :func:`~pstats.Stats.sort_stats` sort values to sort
133 The :mod:`pstats` module's :class:`~pstats.Stats` class has a variety of methods
136 import pstats
137 p = pstats.Stats('restats')
140 The :meth:`~pstats.Stats.strip_dirs` method removed the extraneous path from all
141 the module names. The :meth:`~pstats.Stats.sort_stats` method sorted all the
143 :meth:`~pstats.Stats.print_stats` method printed out all the statistics. You
195 Invoked as a script, the :mod:`pstats` module is a statistics browser for
217 present, then this function automatically creates a :class:`~pstats.Stats`
219 it is passed to this :class:`~pstats.Stats` instance to control how the
247 import cProfile, pstats, io
254 ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
273 Create a :class:`~pstats.Stats` object based on the current
298 Analysis of the profiler data is done using the :class:`~pstats.Stats` class.
300 .. module:: pstats
316 with data in an existing :class:`~pstats.Stats` object, the
317 :meth:`~pstats.Stats.add` method can be used.
332 If :meth:`~pstats.Stats.strip_dirs` causes two function names to be
439 :meth:`~pstats.Stats.sort_stats` operation done on the object (subject to
440 caveats in :meth:`~pstats.Stats.add` and
441 :meth:`~pstats.Stats.strip_dirs`).
468 identical to that provided by :meth:`~pstats.Stats.print_stats`, and the
489 ordering are identical to the :meth:`~pstats.Stats.print_callers` method.