Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/pprof: unexpectedly creates c:\pprof directory #9180

Closed
alexbrainman opened this issue Nov 27, 2014 · 4 comments
Closed

cmd/pprof: unexpectedly creates c:\pprof directory #9180

alexbrainman opened this issue Nov 27, 2014 · 4 comments
Milestone

Comments

@alexbrainman
Copy link
Member

C:\go\root\src\archive\zip>hg id
ffe33f1f1f17

C:\go\root\src\archive\zip>dir c:\pprof
 Volume in drive C has no label.
 Volume Serial Number is F483-CD2E

 Directory of c:\

File Not Found

C:\go\root\src\archive\zip>go test -c && zip.test.exe -test.v -test.run=none
-test.bench=.*  -test.cpuprofile test.prof && go tool pprof zip.test.exe
test.prof
PASS
BenchmarkCompressedZipGarbage         20          53905905 ns/op          107272 B/op   
    153 allocs/op
BenchmarkZip64Test             3         401039100 ns/op
Entering interactive mode (type "help" for commands)
(pprof) quit

C:\go\root\src\archive\zip>dir c:\pprof
 Volume in drive C has no label.
 Volume Serial Number is F483-CD2E

 Directory of c:\pprof

28/11/2014  09:41 AM    <DIR>          .
28/11/2014  09:41 AM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  113,372,999,680 bytes free

C:\go\root\src\archive\zip>
@minux
Copy link
Member

minux commented Nov 27, 2014

Comment 1:

yeah, it also creates $HOME/pprof on Unix.

@ianlancetaylor
Copy link
Contributor

Comment 2:

Labels changed: added repo-main, release-go1.4maybe.

@osocurioso
Copy link
Contributor

Not entirely clear to me whether the orphan pprof directory is a feature or a bug, but here's a suggested fix in case it's supposed to be removed: https://go-review.googlesource.com/2972

@rsc rsc added this to the Go1.5Maybe milestone Apr 10, 2015
@gopherbot
Copy link

CL https://golang.org/cl/12202 mentions this issue.

@rsc rsc closed this as completed in 505f6e3 Jul 15, 2015
@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jul 16, 2015
@golang golang locked and limited conversation to collaborators Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants