• Raul Silvera's avatar
    cmd/pprof: search for sample types in profile · 7e4ef4eb
    Raul Silvera authored
    Search the sample types in the profile being processed to map
    sample type options to indices in the profile sample type array.
    
    Previously these were hardcoded, which caused issues when the
    sample types for a profile type changed. For instance, this was
    triggered by the native generation of profiles in profile.proto
    format.
    
    This fixes #18230. A similar mechanism already exists on the upstream
    pprof.
    
    Change-Id: I945d8d842a0c2ca14299dabefe83124746ecd7e2
    Reviewed-on: https://go-review.googlesource.com/34382Reviewed-by: 's avatarMichael Matloob <matloob@golang.org>
    7e4ef4eb
Name
Last commit
Last update
..
internal Loading commit data...
README Loading commit data...
doc.go Loading commit data...
pprof.go Loading commit data...