Results of 1 - 2 of about 2 for SortKey (0.002 sec.)
- The Python Profilers — Python 3.14.8 ドキュメント 9357
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » The Python Profilers テーマ 自動 ライト ダーク | The Python Profilers ¶ Source code: Lib/profile.py and L
...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
- The Python Profilers — Python 3.14.8 ドキュメント 9357
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » The Python Profilers テーマ 自動 ライト ダーク | The Python Profilers ¶ Source code: Lib/profile.py and L
...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