This article by Georgiana is pretty much awesomesauce. Now I can look at my cachegrind files without booting up a VM.  If you’re having trouble, here’s some help.  You probably want this file from the qt-project website.  It will install to ~/Qt/.  Then you’ll want to run
~/Qt/5.1.0/clang_64/bin/qmake -spec 'macx-g++'; make
The above will be helpful if you’re getting an error like this:
/Developer/Tools/Qt/uic generalsettings.ui -o ui_generalsettings.h make: /Developer/Tools/Qt/uic: No such file or directory make: *** [ui_generalsettings.h] Error 1
or a huge stream of errors like this:
../libviews/globalguiconfig.cpp: At global scope: ../libviews/globalguiconfig.cpp:188: error: no ‘QColor GlobalGUIConfig::groupColor(CostItem*)’ member function declared in class ‘GlobalGUIConfig’ ../libviews/globalguiconfig.cpp: In member function ‘QColor GlobalGUIConfig::groupColor(CostItem*)’: ../libviews/globalguiconfig.cpp:188: error: return type ‘struct QColor’ is incomplete ../libviews/globalguiconfig.cpp:190: error: ‘class ConfigColorSetting’ has no member named ‘color’ ../libviews/globalguiconfig.cpp: At global scope: ../libviews/globalguiconfig.cpp:193: error: no ‘QColor GlobalGUIConfig::eventTypeColor(EventType*)’ member function declared in class ‘GlobalGUIConfig’ ../libviews/globalguiconfig.cpp: In member function ‘QColor GlobalGUIConfig::eventTypeColor(EventType*)’: ../libviews/globalguiconfig.cpp:193: error: return type ‘struct QColor’ is incomplete ../libviews/globalguiconfig.cpp:202: error: ‘class ConfigColorSetting’ has no member named ‘color’ ../libviews/globalguiconfig.cpp: At global scope: ../libviews/globalguiconfig.cpp:206: error: no ‘QColor GlobalGUIConfig::functionColor(ProfileContext::Type, TraceFunction*)’ member function declared in class ‘GlobalGUIConfig’ ../libviews/globalguiconfig.cpp: In member function ‘QColor GlobalGUIConfig::functionColor(ProfileContext::Type, TraceFunction*)’: ../libviews/globalguiconfig.cpp:206: error: return type ‘struct QColor’ is incomplete ../libviews/globalguiconfig.cpp:226: error: ‘class ConfigColorSetting’ has no member named ‘color’ make: *** [globalguiconfig.o] Error 1