摘要:
python -m cProfile -s cumulative xxx.py 为了获得对 cProfile 结果的更多控制,我们可以生成一个统计文件然后通过 Python 进行分析: $ python -m cProfile -o profile.stats xxx.py 我们可以这样将其调入 P 阅读全文
posted @ 2019-06-09 22:00
C,python,linux,java
阅读(447)
评论(0)
推荐(0)
摘要:
$usr/bin/time -p python xxx.py 注意我们特地使用了/usr/bin/time 而不是 time,也就是说我们使用的是系统 命令的 time 而不是那个更加简单而没用的 shell 内建版本的 time。如果你用 time --verbose,结果得到了一个错误,那么你使 阅读全文
posted @ 2019-06-09 20:25
C,python,linux,java
阅读(652)
评论(0)
推荐(0)

浙公网安备 33010602011771号