Lines Matching refs:SortKey
145 from pstats import SortKey
155 p.sort_stats(SortKey.NAME)
162 p.sort_stats(SortKey.CUMULATIVE).print_stats(10)
171 p.sort_stats(SortKey.TIME).print_stats(10)
178 p.sort_stats(SortKey.FILENAME).print_stats('__init__')
184 p.sort_stats(SortKey.TIME, SortKey.CUMULATIVE).print_stats(.5, 'init')
257 from pstats import SortKey
263 sortby = SortKey.CUMULATIVE
388 the supplied criteria. The argument can be either a string or a SortKey
390 ``SortKey.TIME`` or ``SortKey.NAME``). The SortKey enums argument have
396 them. For example, ``sort_stats(SortKey.NAME, SortKey.FILE)`` will sort
403 The following are the valid string and SortKey:
408 | ``'calls'`` | SortKey.CALLS | call count |
410 | ``'cumulative'`` | SortKey.CUMULATIVE | cumulative time |
416 | ``'filename'`` | SortKey.FILENAME | file name |
422 | ``'pcalls'`` | SortKey.PCALLS | primitive call count |
424 | ``'line'`` | SortKey.LINE | line number |
426 | ``'name'`` | SortKey.NAME | function name |
428 | ``'nfl'`` | SortKey.NFL | name/file/line |
430 | ``'stdname'`` | SortKey.STDNAME | standard name |
432 | ``'time'`` | SortKey.TIME | internal time |
440 ``SortKey.NFL`` and ``SortKey.STDNAME`` is that the standard name is a
444 In contrast, ``SortKey.NFL`` does a numeric compare of the line numbers.
445 In fact, ``sort_stats(SortKey.NFL)`` is the same as
446 ``sort_stats(SortKey.NAME, SortKey.FILENAME, SortKey.LINE)``.
457 Added the SortKey enum.