Skip to content

profile decorator may need to use functools.wrap #299

@staftermath

Description

@staftermath

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions