Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: strongly encourage using CallersFrames over FuncForPC with Callers result #19426
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?