]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: remove "deleted" suffix while parsing maps file
authorMarko Kevac <marko@kevac.org>
Tue, 5 Jun 2018 19:41:18 +0000 (22:41 +0300)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Fri, 7 Sep 2018 09:45:52 +0000 (09:45 +0000)
commit73b8e5f81b992597462d39978bad09c0f88a530e
tree324ee9906e3a79dbdf59eb00bfa61e5de33107ca
parent031a35ec8471a97fba4f3ab0ff9c0e9eaa54ae1e
runtime/pprof: remove "deleted" suffix while parsing maps file

If binary file of a running program was deleted or moved, maps
file (/proc/pid/maps) will contain lines that have this binary
filename suffixed with "(deleted)" string. This suffix stayed
as a part of the filename and made remote profiling slightly more
difficult by requiring from a user to rename binary file to
include this suffix.

This change cleans up the filename and removes this suffix and
thus simplify debugging.

Fixes #25740

Change-Id: Ib3c8c3b9ef536c2ac037fcc14e8037fa5c960036
Reviewed-on: https://go-review.googlesource.com/116395
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/runtime/pprof/proto.go
src/runtime/pprof/proto_test.go