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.
143 The :class:`pstats.Stats` class reads profile results from a file and formats
153 ``-s`` specifies one of the :func:`~pstats.Stats.sort_stats` sort values to sort
156 The :mod:`pstats` module's :class:`~pstats.Stats` class has a variety of methods
159 import pstats
160 p = pstats.Stats('restats')
163 The :meth:`~pstats.Stats.strip_dirs` method removed the extraneous path from all
164 the module names. The :meth:`~pstats.Stats.sort_stats` method sorted all the
166 :meth:`~pstats.Stats.print_stats` method printed out all the statistics. You
218 Invoked as a script, the :mod:`pstats` module is a statistics browser for
240 present, then this function automatically creates a :class:`~pstats.Stats`
242 it is passed to this :class:`~pstats.Stats` instance to control how the
270 import cProfile, pstats, StringIO
277 ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
296 Create a :class:`~pstats.Stats` object based on the current
321 Analysis of the profiler data is done using the :class:`~pstats.Stats` class.
323 .. module:: pstats
339 with data in an existing :class:`~pstats.Stats` object, the
340 :meth:`~pstats.Stats.add` method can be used.
355 If :meth:`~pstats.Stats.strip_dirs` causes two function names to be
464 :meth:`~pstats.Stats.sort_stats` operation done on the object (subject to
465 caveats in :meth:`~pstats.Stats.add` and
466 :meth:`~pstats.Stats.strip_dirs`).
492 identical to that provided by :meth:`~pstats.Stats.print_stats`, and the
513 ordering are identical to the :meth:`~pstats.Stats.print_callers` method.