I am trying to profile a python script, I have identified the bottleneck to be a function using python -m cProfile myscript.py. How do I know which line in the function is the cause for the bottle neck? Can I profile line by line inside a function? Thanks!
您可以使用行分析器包。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.