]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: propagate profile labels into profile proto
authorMichael Matloob <matloob@golang.org>
Wed, 5 Apr 2017 17:50:52 +0000 (13:50 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 28 Apr 2017 17:37:58 +0000 (17:37 +0000)
commitf105c917573dea3e94edf7c7a4e64e1c934a0db2
tree0345281a54454b16c6f60f54b5f1b45c9c230e99
parentc82efb1fa370ea83a7e9ff89d85598bb0fdc3fb5
runtime/pprof: propagate profile labels into profile proto

Profile labels added by the user using pprof.Do, if present will
be in a *labelMap stored in the unsafe.Pointer 'tag' field of
the profile map entry. This change extracts the labels from the tag
field and writes them to the profile proto.

Change-Id: Ic40fdc58b66e993ca91d5d5effe0e04ffbb5bc46
Reviewed-on: https://go-review.googlesource.com/39613
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/pprof/pprof_test.go
src/runtime/pprof/proto.go