1
0
mirror of https://github.com/golang/go synced 2024-09-29 07:24:32 -06:00

pprof: replace bits = bits + "..." to bits += "..." where bits is a string.

Change-Id: Ic77ebbdf2670b7fdf2c381cd1ba768624b07e57c
Reviewed-on: https://go-review.googlesource.com/c/141998
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Ivan Sharavuev 2018-10-13 13:25:20 +03:00 committed by Ian Lance Taylor
parent 85066acca1
commit e47c11d8b1

View File

@ -415,16 +415,16 @@ func (p *Profile) String() string {
for _, m := range p.Mapping { for _, m := range p.Mapping {
bits := "" bits := ""
if m.HasFunctions { if m.HasFunctions {
bits = bits + "[FN]" bits += "[FN]"
} }
if m.HasFilenames { if m.HasFilenames {
bits = bits + "[FL]" bits += "[FL]"
} }
if m.HasLineNumbers { if m.HasLineNumbers {
bits = bits + "[LN]" bits += "[LN]"
} }
if m.HasInlineFrames { if m.HasInlineFrames {
bits = bits + "[IN]" bits += "[IN]"
} }
ss = append(ss, fmt.Sprintf("%d: %#x/%#x/%#x %s %s %s", ss = append(ss, fmt.Sprintf("%d: %#x/%#x/%#x %s %s %s",
m.ID, m.ID,