I recently was trying to profile the difference between pandas and modin, and ran into an issue with the profile decorator. After some digging I found that both profile and modin may be at fault. I am making a fix at modin's end to address the root cause . Basically, I believe profile may need to use functools.wraps when creating a wrapped function, that may prevent adding unwanted local variables. I can make a PR if you like.
P.S. thanks for this great tool. I just did a demo of some of my stuff at work to my colleague and used this for illustration purposes :)
I recently was trying to profile the difference between pandas and modin, and ran into an issue with the profile decorator. After some digging I found that both
profileand modin may be at fault. I am making a fix at modin's end to address the root cause . Basically, I believe profile may need to usefunctools.wrapswhen creating a wrapped function, that may prevent adding unwanted local variables. I can make a PR if you like.P.S. thanks for this great tool. I just did a demo of some of my stuff at work to my colleague and used this for illustration purposes :)