Closed NHDaly closed 3 years ago
I've asked about this discovery here: https://github.com/google/pprof/issues/573
Hopefully this is indeed a good enough solution! 🤞
I currently have full_signatures = false
as the default, to preserve old behavior, but then i'm thinking maybe we release a v2.0.0
and flip the default to true
? 😁 Because it just seems strictly better!
Fixes https://github.com/JuliaPerf/PProf.jl/issues/24
It turns out that (as far as I can tell), setting a separate
Name
andOriginalName
in the proto is enough to causegoogle/pprof
to not modify the user-suppliedName
.This PR uses this trick to prevent name mangling in
pprof
, and provides an optional argument to control whether we emit only the generic function name or the full method signature for the given method.