line_profiler 使用装饰器( @profile )标记需要调试的函数. 用 kernprof.py 脚本运行代码, 被选函数每一行花费的cpu 时间以及其他信息就会被记录下来.
確定! 回上一頁