Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Go profiler?

Tags:

profiling

go

I played around with Go a bit shortly after it came out. There wasn't a profiler then; is there one now?

like image 414
nmichaels Avatar asked Oct 05 '10 13:10

nmichaels


Video Answer


2 Answers

I use pprof package, and Google perftools.

like image 144
racetrack Avatar answered Sep 25 '22 20:09

racetrack


If you use the gccgo compiler instead of the 6g compiler, you'd probably be able to use the normal GNU tools, i.e. gprof.

I haven't actually done it with gprof, but I at least know that it works for gdb.

like image 28
Jörg W Mittag Avatar answered Sep 22 '22 20:09

Jörg W Mittag