callgrind+Kcachegrind

Ryoの開発日記
valgrindは、知っていたけど、ビジュアル化するツールは知らなかった。見た目がすごい。

ということで、macに入るか探してみる。
http://www.typofree.org/article/archive/2009/august/title/installing-kcachegrind-on-osx/:title に、っぽい記事見つけたので、やってみる。その前に、まず、valgrind

port install valgrind

OK、特に問題なく入りました。

$port install kcachegrind
Error: Unable to execute port: Can't install qt3 because conflicting ports are installed: qt4-mac

むーん、じゃあ、よくわからないけど、gt4-macをアンインストールしますか。なんか、間違いなく依存関係沢山ありそうだけど。

$port uninstall qt4-mac
--->  The following versions of qt4-mac are currently installed:
--->      qt4-mac @4.7.1_1+quartz
--->      qt4-mac @4.7.2_0+quartz
--->      qt4-mac @4.7.4_1+quartz (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

で、色々見ていたら、port deactivateなるものを発見

(127)->$port deactivate qt4-mac
--->  Deactivating qt4-mac @4.7.4_1+quartz
--->  Unable to deactivate qt4-mac @4.7.4_1+quartz, the following ports depend on it:
--->  	qscintilla @2.4.6_0
--->  	sqliteman @1.2.2_3
Error: Target org.macports.deactivate returned: Please uninstall the ports that depend on qt4-mac first.

Riverbank | Software | QScintilla | What is QScintilla?で見る限り、私の人生には関係なさそう。
sqliteman.com - このウェブサイトは販売用です! -&nbspsqliteman リソースおよび情報ほう、SQLiteにたいする、PostgressでいうpgAdminか、いらないなあ、SQLite自体のソースは興味あるけど。

$port deactivate sqliteman
$port deactivate qscintilla
$port deactivate qt4-mac

という感じで、成功。やっと、kcachegrindにたどり着く

port install kcachegrind

OK、入りました。で、適当にsqliteのサンプルコードでやってみると…できたー。面白いなあ。