Forked from justfalter/how_to_install_qcachegrind_on_osx.txt
Last active
September 1, 2015 12:53
-
-
Save pwmpw/af928d7b773735c8a054 to your computer and use it in GitHub Desktop.
Revisions
-
justfalter revised this gist
Jun 16, 2011 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,6 +18,11 @@ it will build just fine on earlier versions of Xcode, but I haven't tested it. # qcachegrind likes to draw. # http://www.graphviz.org/Download_macos.php # By default, Graphviz installs dot to /usr/local/bin/dot, which qcachgrind.app # might not find since /usr/local/bin isn't in PATH by default (I think). In order # to ensure that my graphs render, I created a symlink from /usr/bin/dot to /usr/local/bin/dot: sudo ln -s /usr/local/bin/dot /usr/bin/dot ### Building qcachegrind svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk/kcachegrind kcachegrind cd kcachegrind/qcachegrind -
justfalter revised this gist
Jun 16, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,7 @@ cd kcachegrind/qcachegrind # qcachegrind will only let you open up files named "callgrind.out*". Since # I'm an adult, I created a patch that allows me to open up any file. # You can grab the patch from this gist. wget https://gist.github.com/raw/1029580/e93011546fa5d562fa2a4d80b2d96479276b790e/qcachegrind_filename_filter.patch patch -p0 < qcachegrind_filename_filter.patch # By default, qmake wanted to build an xcode project on my box. I pointed -
justfalter revised this gist
Jun 16, 2011 . 1 changed file with 12 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,20 @@ --- qcgtoplevel.cpp (revision 1237008) +++ qcgtoplevel.cpp (working copy) @@ -795,7 +795,7 @@ file = QFileDialog::getOpenFileName(this, tr("Open Callgrind Data"), _lastFile, - tr("Callgrind Files (callgrind.*)")); + tr("Callgrind Files (*)")); loadTrace(file); } @@ -842,7 +842,7 @@ file = QFileDialog::getOpenFileName(this, tr("Add Callgrind Data"), _lastFile, - tr("Callgrind Files (callgrind.*)")); + tr("Callgrind Files (*)")); addTrace(file); } -
justfalter revised this gist
Jun 16, 2011 . 2 changed files with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,6 +25,7 @@ cd kcachegrind/qcachegrind # qcachegrind will only let you open up files named "callgrind.out*". Since # I'm an adult, I created a patch that allows me to open up any file. # You can grab the patch from this gist. wget https://gist.github.com/raw/1029580/38f66f8f941ffa17734635010c82d0802f42aec0/qcachegrind_filename_filter.patch patch -p0 < qcachegrind_filename_filter.patch # By default, qmake wanted to build an xcode project on my box. I pointed This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,4 +16,4 @@ - tr("Callgrind Files (callgrind.*)")); + tr("Callgrind Files (*)")); addTrace(file); } -
justfalter created this gist
Jun 16, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ SUMMARY I like to use kcachegrind for doing profiling on my ruby code. Most of my development is done on OSX, and while you can install kcachegrind via macports, it takes forever because it has to build KDE, as well. Much to my surprise, the fine folks who wrote kcachegrind also made a QT version, qcachegrind. I was able to build this on OSX without too much effort, only having to install QT and GraphViz. Yippie! I'm running OSX 10.6.7, with Xcode 4. My default gcc/g++ version is 4.2. I'm sure it will build just fine on earlier versions of Xcode, but I haven't tested it. ### Download and install QT # I installed 4.7.3 on for 10.5/10.6 from here: # http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/ ### Download and install Graphviz # If you don't already have graphiviz (specifically the 'dot' binary), then # install it. This is so that you can see the pretty call graphs that # qcachegrind likes to draw. # http://www.graphviz.org/Download_macos.php ### Building qcachegrind svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk/kcachegrind kcachegrind cd kcachegrind/qcachegrind # qcachegrind will only let you open up files named "callgrind.out*". Since # I'm an adult, I created a patch that allows me to open up any file. # You can grab the patch from this gist. patch -p0 < qcachegrind_filename_filter.patch # By default, qmake wanted to build an xcode project on my box. I pointed # it at spec profile that builds using g++, and things seemed to work fine. # You can see all the profiles available in this directory: /usr/local/Qt4.7/mkspecs # This also managed to spit out a whole bunch of errors and warnings, yet # everything seemed to build properly. qmake -spec 'macx-g++' make # It should have generated 'qcachegrind.app'. You can put this in # /Applications, or you can just open it directly. open qcachegrind.app This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ --- qcgtoplevel.cpp (revision 1237008) +++ qcgtoplevel.cpp (working copy) @@ -795,7 +795,7 @@ file = QFileDialog::getOpenFileName(this, tr("Open Callgrind Data"), _lastFile, - tr("Callgrind Files (callgrind.*)")); + tr("Callgrind Files (*)")); loadTrace(file); } @@ -842,7 +842,7 @@ file = QFileDialog::getOpenFileName(this, tr("Add Callgrind Data"), _lastFile, - tr("Callgrind Files (callgrind.*)")); + tr("Callgrind Files (*)")); addTrace(file); }