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 code is a bit long, hence didn't want to add it.SDK– SDK2016年03月16日 17:29:32 +00:00Commented Mar 16, 2016 at 17:29
lang-py