Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NO MRG] Use line_profiler to measure time in transitions #4265

Closed
wants to merge 32 commits into from

Conversation

jakirkham
Copy link
Member

In order to identify any slow parts within the transition methods themselves, this leverages line_profiler and decorates the relevant methods. Should help us get a better picture about what in these methods may take a long time and therefore where effort is best directed.

In order to identify any slow parts within the transition methods
themselves, this leverages line_profiler and decorates the relevant
methods. Should help us get a better picture about what in these methods
may take a long time and therefore where effort is best directed.
This should filter out processes that merely import `distributed` or use
other functionality that is not actively profiled from the results. As a
result should make the results easier to parse.
When looking at the profiling information from transition functions,
these particular functions stood out as taking 10% or more of that time.
So this decorates them with the profiler so we can get a better idea of
what they are doing.
Decorating `_background_send` before the coroutine decorator resulted in
some issues and decorating after doesn't tell us what we want to know.
So try using a `with` block instead to avoid fiddling with the coroutine
decorator.
Also skip profiling `send`. We already understand the `wait` is what
takes the bulk of the time.
Base automatically changed from master to main March 8, 2021 19:04
@jakirkham jakirkham closed this Apr 29, 2022
@jakirkham jakirkham deleted the lp_patch branch April 29, 2022 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant