• 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
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...