Commit e47c11d8 authored by Ivan Sharavuev's avatar Ivan Sharavuev Committed by Ian Lance Taylor

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: default avatarIan Lance Taylor <iant@golang.org>
parent 85066acc
...@@ -415,16 +415,16 @@ func (p *Profile) String() string { ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment