Skip to content

cmd/pprof: the profiler create unused directory '$HOME/pprof' #17392

@hirochachacha

Description

@hirochachacha

Please answer these questions before submitting your issue. Thanks!

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

$ ls -ld ~/pprof
ls: /Users/hiro/pprof: No such file or directory

$ go tool pprof bin cpu.out

$ ls -ld ~/pprof
drwxr-xr-x  2 hiro  staff  68 Oct 10 09:41 /Users/hiro/pprof

What did you expect to see?

No such file or directory

What did you see instead?

drwxr-xr-x 2 hiro staff 68 Oct 10 09:41 /Users/hiro/pprof

Does this issue reproduce with the latest release (go1.7.1)?

I guess so.

System details

go version devel +334cbe3 Sun Oct 9 22:50:12 2016 +0000 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/hiro/.go"
GORACE=""
GOROOT="/Users/hiro/go"
GOTOOLDIR="/Users/hiro/go/pkg/tool/darwin_amd64"
TERM="dumb"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wq/dwn8hs0x7njbzty9f68y61700000gn/T/go-build668980978=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
uname -v: Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64
ProductName:    Mac OS X
ProductVersion: 10.11.6
BuildVersion:   15G1004
lldb --version: lldb-360.1.50
gdb --version: GNU gdb (GDB) 7.11.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions