cmd/go: consider making "tool pprof" work with the module cache #48601
I was just debugging a server's large memory usage, so via its http pprof endpoints, I downloaded some profiles.
The binaries running on that server were built with
Unfortunately that means that, if I grab the deployed binary and some of its profiles, trying to use
This won't cover quite all cases, because the main module lacks a version, and might not even be in the module cache if I built from a
I still think it would be neat for
One alternative I do have, which will support listing all function sources, is to rebuild the same program with the same build flags but without
Yet another question is how I could tell
The text was updated successfully, but these errors were encountered:
In module world, there can be multiple source roots where involved source files are. 1) module cache, 2) main module, and 3) local dependencies (replaced dependencies or picked by
Delve addresses a similar issue with users source mapping configuration that allows multiple mapping entries.
I do imagine this might require something more than the current
And the user could add extra maps, like