aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Sharavuev <shpiwan@gmail.com>2018-10-13 13:25:20 +0300
committerIan Lance Taylor <iant@golang.org>2018-10-15 04:27:52 +0000
commite47c11d8b1bc26ce3283df6bc04f8ca4cf1b074b (patch)
tree3c5d8e0b3d78a814de00bebc6dcf78da2b7d9969 /src
parent85066acca144625e239294e2ce07bb2cfbc800c2 (diff)
downloadgo-e47c11d8b1bc26ce3283df6bc04f8ca4cf1b074b.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/pprof/internal/profile/profile.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/pprof/internal/profile/profile.go b/src/runtime/pprof/internal/profile/profile.go
index 863bd403a4..84e607e9a8 100644
--- a/src/runtime/pprof/internal/profile/profile.go
+++ b/src/runtime/pprof/internal/profile/profile.go
@@ -415,16 +415,16 @@ func (p *Profile) String() string {
for _, m := range p.Mapping {
bits := ""
if m.HasFunctions {
- bits = bits + "[FN]"
+ bits += "[FN]"
}
if m.HasFilenames {
- bits = bits + "[FL]"
+ bits += "[FL]"
}
if m.HasLineNumbers {
- bits = bits + "[LN]"
+ bits += "[LN]"
}
if m.HasInlineFrames {
- bits = bits + "[IN]"
+ bits += "[IN]"
}
ss = append(ss, fmt.Sprintf("%d: %#x/%#x/%#x %s %s %s",
m.ID,