I switched to go modules recently and I can't seem to make pprof
recognize the source files. Maybe someone here knows how to?
I tried using the -source_path
and -trim_path
options but I can't figure it out how to make it work.
Interestingly, typing o
in the interactive mode of pprof
shows the the trim_path
option but not the source_path
.
Just to be sure: pprof
does work with local modules and showing their sources in the stack traces, right?