OSX Instruments for profiling? Cachegrind?

223 views
Skip to first unread message

Michael

unread,
Sep 3, 2011, 4:08:31 PM9/3/11
to golang-nuts
I was wondering if anyone has successfully used OSX Instruments for
profiling go?

I'm new to OSX and to Go, and I haven't had much success. I imagine
that it involves building the Go runtime library with some debugging
symbols and also the target Go code. Go has a built-in profiler, but
that's broken on OSX. Another option is valgrind --cachegrind but that
too seems a bit broken on OSX 10.7. Any tips would be greatly
appreciated.

Paulo Pinto

unread,
Sep 4, 2011, 4:57:50 PM9/4/11
to golang-nuts
As far as I am aware you can only use Instruments with the Apple
compilers (C, C++, Objective-C).

Matt Aimonetti

unread,
Sep 4, 2011, 8:13:46 PM9/4/11
to golang-nuts
You can actually use OS X Instruments with go via DTrace.
It will probably require you to dig into Go's DTrace support & DTrace
itself tho.

- Matt
Reply all
Reply to author
Forward
0 new messages