Pycharm has a profiler I used a couple of times.
https://www.jetbrains.com/help/pycharm/profiler.html#jump
An individual use license for PyCharm Professional is only $89 for the first year (then $71 for the second year, then $53/year thereafter).
[1]: https://sales.jetbrains.com/hc/en-gb/articles/207241075-What...