How to profile all functions belong to a module? #305
Replies: 2 comments
-
that is the correct usage. although i personally use a different method
i doubt that would make a difference but you can give it a try Anyways, since the syntax is correct, that means its something from your side.
if both of the above cases work and you are getting timing output, then there is something in I have encountered some weird instances where autoprofiling will act up when there is an external process that calls the script. eg: unittests. we would need more information so we can help |
Beta Was this translation helpful? Give feedback.
-
I have a module called
foo
and atest.py
file import functions from the module. Is there any way to profile all lines belong tofoo
?I read https://kernprof.readthedocs.io/en/latest/line_profiler.autoprofile.html#auto-profiling , the description seems what I need but if I use
It takes a long time and nothing happens.
Beta Was this translation helpful? Give feedback.
All reactions