Closed Huarong closed 6 years ago
I don't know. Is this repeatable? Are there threads in your program? If there are threads, then it is possible that you hit a context switch at this line.
Can you post a complete minimal example that we can run that demonstrates the issue? Is hit_fit_diseases
a property?
@rkern
1 Yes, It is repeatable.
2 Yes. I use it in Tornado.
3 hit_fit_diseases
is not a property but a pure attribute.
I moved this piece of code to a simple script and the line_profiler worked as expected. So I guess it may related to threads.
Thanks for the great tool.
I used line_profiler to analysis my code and got strange results.
why is the line 1023 so slow compared with other lines?