【发布时间】:2018-11-16 18:27:19
【问题描述】:
我使用cprofile 来获取高犯,但是filename:lineno 仅列出文件名,但列出文件路径对于快速打开该路径会更有用。特别是如果不同层次结构中可能存在相同的模块名称。
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 3.922 display.py:599 (show)
有没有办法把它变成全路径?
【问题讨论】: