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

feat(execute): refactor the operator profile to be in the statistics #4791

Merged
merged 1 commit into from
May 26, 2022

Conversation

jsternberg
Copy link
Contributor

@jsternberg jsternberg commented May 25, 2022

The operator profile is now always computed and it is part of the
flux.Statistics struct that is returned by the query. The operator
profile now uses that to return the profile instead of using Go channels
and the execution dependency injected into the context.

This allows the results of the operator profile to be present without it
being tied directly to the profiler return.

It has also been refactored to remove the use of channels for sending
span data and aggregating in a goroutine to instead just aggregate the
results as part of the source/transport code. This should simplify and
speed up those calculations as the overall time should be equivalent but
without the overhead of Go channels and only requiring a short-lived
lock for appending the source profiles in the executor.

Done checklist

  • docs/SPEC.md updated
  • Test cases written

@jsternberg jsternberg requested a review from a team as a code owner May 25, 2022 20:27
@jsternberg jsternberg requested review from scbrickley and removed request for a team May 25, 2022 20:27
@jsternberg jsternberg force-pushed the feat/profiler-statistics branch from 9cac57c to ed5adfd Compare May 25, 2022 20:41
The operator profile is now always computed and it is part of the
`flux.Statistics` struct that is returned by the query. The operator
profile now uses that to return the profile instead of using Go channels
and the execution dependency injected into the context.

This allows the results of the operator profile to be present without it
being tied directly to the profiler return.

It has also been refactored to remove the use of channels for sending
span data and aggregating in a goroutine to instead just aggregate the
results as part of the source/transport code. This should simplify and
speed up those calculations as the overall time should be equivalent but
without the overhead of Go channels and only requiring a short-lived
lock for appending the source profiles in the executor.
@jsternberg jsternberg force-pushed the feat/profiler-statistics branch from ed5adfd to 4f79185 Compare May 25, 2022 20:55
@jsternberg jsternberg merged commit b66bfb9 into master May 26, 2022
@jsternberg jsternberg deleted the feat/profiler-statistics branch May 26, 2022 14:30
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.

2 participants