On 2012/8/22 beatgammit <
beatg...@gmail.com> wrote:
> Thanks for the reply!
>
> I've tried using the pprof utility, but I'm not sure how it works. I tried
> this:
>
> // instead of the manual pprof.Lookup... stuff
> go func () {
> http.ListenAndServe(":6060", nil)
> }()
>
> go tool pprof path/to/server/binary
http://localhost:6060/debug/pprof
> go tool pprof: exit status 1
>
> However, I get this:
>
>
http://localhost:6060/debug/pprof: No such file or directory
>
> I have a server running on localhost:5000 and this on 6060
>
> If I start the server first, I get an error saying:
>
> FATAL ERROR: Did not specify profile file
>
> I couldn't find any documentation on what a profile is or looks like,
> although
golang.org/pkg/runtime/pprof hints at one.
>
> If I navigate to localhost:6060/debug/pprof, I get the expected page,
> however I don't know how to get complete heap dumps (I just get what
> Lookup("heap").WriteTo(os.Stdout, 1) gives).
(currently used + total ever allocated). By default, it doesn't count