-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix(godeltaprof): handle renamed runtime.pprof_cyclesPerSecond #107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (- that one suggestion)
"func github.com/grafana/pyroscope-go/godeltaprof/internal/pprof.runtime_expandFinalInlineFrame(stk []uintptr) []uintptr") | ||
} | ||
|
||
func TestRuntimeCyclesPerSecond(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to remove this test:
pyroscope-go/godeltaprof/compat/stub_test.go
Lines 25 to 29 in ffd2615
func TestSignatureCyclesPerSecondRuntime(t *testing.T) { | |
checkSignature(t, "runtime/pprof", | |
"runtime_cyclesPerSecond", | |
"func runtime/pprof.runtime_cyclesPerSecond() int64") | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think all of the tests in stub_tests.go
are duplicated by the version-specific tests. So I removed all tests from stub_test.go
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@korniltsev do you think we can get a tagged release for godeltaprof so there is a non-tip version usable with Go 1.23 which is coming out shortly? |
This rename of There were other issues found #103 . They were also fixed both in gotip golang/go@87abb4a and godeltaprof 181f95a Do you have any other issues? I've just tested on |
I missed that #95 was included in v0.1.7. Upgrading to v0.1.7 works for me too. Thanks and sorry for the confusion. |
This fixes the build on gotip. The tests are still broken and will be fixed in a followup of #103