modin icon indicating copy to clipboard operation
modin copied to clipboard

Using decorators makes the profile confusing with a lot of circular dependencies.

Open anmyachev opened this issue 9 months ago • 0 comments

For example: image

The situation can be improved with the help of the following workaround proposed here:

traceable_name  = f"wrapped_fn_{fn.__name__}"
wrapped_fn.__name__ = traceable_name ### PATCH - better profiling resolution
wrapped_fn.__code__ = wrapped_fn.__code__.replace(co_name=traceable_name)

With these changes (applied for run_and_log function) the graph will look something like this: image

anmyachev avatar May 14 '24 19:05 anmyachev