per page, with , order by , clip by
Results of 1 - 1 of about 1 for SortKey (0.001 sec.)
The Python Profilers 9414
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... iety of methods for manipulating and printing the data saved into a profile results file: import pstats from pstats import SortKey p = pstats . Stats ( 'restats' ) p . strip_dirs () . sort_stats ( - 1 ) . print_stats () The strip_dirs() method removed t ... printed. The print_stats() method printed out all the statistics. You might try the following sort calls: p . sort_stats ( SortKey . NAME ) p . print_stats () The first call will actually sort the list by function name, and the second call will print ou ... t the statistics. The following are some interesting calls to experiment with: p . sort_stats ( SortKey . CUMULATIVE ) . print_stats ( 10 ) This sorts the profile by cumulative time in a function, and then only prints the ten ...
https://man.mtool.work/python/3.14/library/profile.html
PREV 1 NEXT