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.
121 The :class:`pstats.Stats` class reads profile results from a file and formats
131 ``-s`` specifies one of the :func:`~pstats.Stats.sort_stats` sort values to sort
142 The :mod:`pstats` module's :class:`~pstats.Stats` class has a variety of methods
145 import pstats
146 from pstats import SortKey
147 p = pstats.Stats('restats')
150 The :meth:`~pstats.Stats.strip_dirs` method removed the extraneous path from all
151 the module names. The :meth:`~pstats.Stats.sort_stats` method sorted all the
153 :meth:`~pstats.Stats.print_stats` method printed out all the statistics. You
205 Invoked as a script, the :mod:`pstats` module is a statistics browser for
227 present, then this function automatically creates a :class:`~pstats.Stats`
229 it is passed to this :class:`~pstats.Stats` instance to control how the
257 import cProfile, pstats, io
258 from pstats import SortKey
265 ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
297 Create a :class:`~pstats.Stats` object based on the current
327 Analysis of the profiler data is done using the :class:`~pstats.Stats` class.
329 .. module:: pstats
346 existing :class:`~pstats.Stats` object, the :meth:`~pstats.Stats.add` method
362 If :meth:`~pstats.Stats.strip_dirs` causes two function names to be
476 :meth:`~pstats.Stats.sort_stats` operation done on the object (subject to
477 caveats in :meth:`~pstats.Stats.add` and
478 :meth:`~pstats.Stats.strip_dirs`).
505 identical to that provided by :meth:`~pstats.Stats.print_stats`, and the
526 ordering are identical to the :meth:`~pstats.Stats.print_callers` method.