• 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
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...