-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: strongly encourage using CallersFrames over FuncForPC with Callers result #19426
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
Comments
(I guess that the Callers doc itself does say "To easily look up file/line information for the call sequence, use Frames.") |
Yes, the documentation should definitely steer people more strongly in the right direction than it does now. Thanks for creating an issue to track this. |
CL https://golang.org/cl/37726 mentions this issue. |
|
Go 1.7 introduced the CallersFrames API:
I understand that in Go 1.9, mid-stack inlining will make the results significantly worse for callers that are still using FuncForPC instead of CallersFrames. However, in the runtime documentation I don't see anything to steer the user towards one or the other.
Should we mark Func and FuncForPC as deprecated? Is there some situation to use them instead of CallersFrames?
@ianlancetaylor @aclements @davidlazar
The text was updated successfully, but these errors were encountered: