Discussion:
[go-nuts] pprof - source code
Kane Kim
2015-07-28 21:51:40 UTC
Permalink
Is source code required for pprof to function?
When I'm trying to list the source with list .Foo it gives me an error:
Error: open /opt/go/src/github.com/XXX no such file or directory

P.s. running > go tool pprof --cum binary pprof.gz
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dave Cheney
2015-07-29 04:09:11 UTC
Permalink
Yes, source code is required. Go programs do not embed the source code they were built with, only file paths and line numbers.

Dave
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aurelien
2015-07-29 08:56:04 UTC
Permalink
Hi Kane,

Where do you find the manual for that command?

Readin https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc ,
https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc , or the
source code itself of pprof.go
https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc I do not
see anything corresponding to the way of use pprof.


Aurélien DESBRIÈRES
Post by Kane Kim
Is source code required for pprof to function?
Error: open /opt/go/src/github.com/XXX no such file or directory
P.s. running > go tool pprof --cum binary pprof.gz
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kane Kim
2015-07-29 16:35:33 UTC
Permalink
Thanks, Dave!
Post by aurelien
Where do you find the manual for that command?
Type help in pprof command line.
Post by aurelien
Hi Kane,
Where do you find the manual for that command?
Readin https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc ,
https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc , or the
source code itself of pprof.go
https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc I do not
see anything corresponding to the way of use pprof.
Aurélien DESBRIÈRES
Post by Kane Kim
Is source code required for pprof to function?
Error: open /opt/go/src/github.com/XXX no such file or directory
P.s. running > go tool pprof --cum binary pprof.gz
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aurelien
2015-07-29 19:33:20 UTC
Permalink
Post by Kane Kim
Thanks, Dave!
Post by aurelien
Where do you find the manual for that command?
Type help in pprof command line.
Post by aurelien
Hi Kane,
Where do you find the manual for that command?
Readin https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc ,
https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc , or the
source code itself of pprof.go
https://groups.google.com/forum/#!topic/golang-nuts/k4RwbsIMyOc I do not
see anything corresponding to the way of use pprof.
Aurélien DESBRIÈRES
Post by Kane Kim
Is source code required for pprof to function?
Error: open /opt/go/src/github.com/XXX no such file or directory
P.s. running > go tool pprof --cum binary pprof.gz
go pprof help ... give nothing back :/
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nigel Tao
2015-07-30 01:02:50 UTC
Permalink
Post by aurelien
go pprof help ... give nothing back :/
Running
$ go tool pprof
will give you some help.

Separately, once you've started pprof, typing "help" will give more help:
$ go tool pprof x.prof
Entering interactive mode (type "help" for commands)
(pprof) help
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aurelien
2015-07-30 05:46:25 UTC
Permalink
nice thanks!
Post by Nigel Tao
Post by aurelien
go pprof help ... give nothing back :/
Running
$ go tool pprof
will give you some help.
$ go tool pprof x.prof
Entering interactive mode (type "help" for commands)
(pprof) help
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...