2024-10-01 07:44:01 发布
网友
我使用的是python2.7.11和spyder的(v2.3.8)profiler,但是我无法理解结果。 这是按“总时间”排序的结果图像
我有两个问题:
1)mainloop使用216.012总时间。我怎么知道我的代码的哪个部分/行在调用这些函数?在
mainloop
2)在函数noise_kauff(我定义的)中,总时间是20.51,但是noise_kauff内的第一行使用51.629?在
noise_kauff
Note that the time and call values shown by [spyder-profiler] are global to the execution of the program and not specific to a particular call. Because of this, some functions/methods may show longer times than their callers.
http://sjara.github.io/spyder-profiler/
在您的示例中,__getitem__大概从noise_kauff加上从其他地方运行了大约半分钟。不幸的是,spyder只是把它们加在一起-这是一个已知的问题/错误。在
__getitem__
http://sjara.github.io/spyder-profiler/
在您的示例中,
__getitem__
大概从noise_kauff
加上从其他地方运行了大约半分钟。不幸的是,spyder只是把它们加在一起-这是一个已知的问题/错误。在相关问题 更多 >
编程相关推荐