-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/compile/internal/pgo: fix hard-coded PGO sample data position #58294
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
Conversation
3b6e84e
to
2cb3ce0
Compare
This PR (HEAD: 2cb3ce0) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/465135 to see it. Tip: You can toggle comments from me using the |
Happy to add a test of course, but wanted to discuss what you would prefer that to look like. Should I edit the existing test and modify the generated pprof and put the samples count on index 0? An additional test? Or is it small enough that you don't care? |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Michael Pratt: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Gopher Robot: Patch Set 1: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Michael Pratt: Patch Set 1: Code-Review+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
0e406c8
to
9bf83e6
Compare
This PR (HEAD: 9bf83e6) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/465135 to see it. Tip: You can toggle comments from me using the |
Message from Frederic Branczyk: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Cherry Mui: Patch Set 1: Code-Review+2 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Michael Pratt: Patch Set 2: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
9bf83e6
to
302d47f
Compare
This PR (HEAD: 302d47f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/465135 to see it. Tip: You can toggle comments from me using the |
Message from Frederic Branczyk: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Austin Clements: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
302d47f
to
157ffb9
Compare
This PR (HEAD: 157ffb9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/465135 to see it. Tip: You can toggle comments from me using the |
Message from Frederic Branczyk: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Michael Pratt: Patch Set 4: Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Gopher Robot: Patch Set 4: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from David Chase: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
This patch detects at which index position profiling samples that have the value-type samples count are, instead of the previously hard-coded position of index 1. Runtime generated profiles always generate CPU profiling data with the 0 index being CPU nanoseconds, and samples count at index 1, which is why this previously hasn't come up. Fixes golang#58292
157ffb9
to
dabbf9f
Compare
This PR (HEAD: dabbf9f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/465135 to see it. Tip: You can toggle comments from me using the |
Message from Frederic Branczyk: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Michael Pratt: Patch Set 5: Auto-Submit+1 Code-Review+2 Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465135. |
This patch detects at which index position profiling samples that have the value-type samples count are, instead of the previously hard-coded position of index 1. Runtime generated profiles always generate CPU profiling data with the 0 index being CPU nanoseconds, and samples count at index 1, which is why this previously hasn't come up. Fixes #58292 Change-Id: Idde761d53b02259f3076c4e5dcb4a96a9d53df0e GitHub-Last-Rev: dabbf9f GitHub-Pull-Request: #58294 Reviewed-on: https://go-review.googlesource.com/c/go/+/465135 Auto-Submit: Michael Pratt <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Run-TryBot: Michael Pratt <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
This PR is being closed because golang.org/cl/465135 has been merged. |
This patch detects at which index position profiling samples that have the value-type samples count are, instead of the previously hard-coded position of index 1. Runtime generated profiles always generate CPU profiling data with the 0 index being CPU nanoseconds, and samples count at index 1, which is why this previously hasn't come up. Fixes golang#58292 Change-Id: Idde761d53b02259f3076c4e5dcb4a96a9d53df0e GitHub-Last-Rev: dabbf9f GitHub-Pull-Request: golang#58294 Reviewed-on: https://go-review.googlesource.com/c/go/+/465135 Auto-Submit: Michael Pratt <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Run-TryBot: Michael Pratt <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
This patch detects at which index position profiling samples that have the value-type samples count are, instead of the previously hard-coded position of index 1. Runtime generated profiles always generate CPU profiling data with the 0 index being CPU nanoseconds, and samples count at index 1, which is why this previously hasn't come up.
Fixes #58292