Google Performance Tools を使う on Ubuntu 12.04 (64bit)

 最新版の取得 : http://code.google.com/p/gperftools/downloads/detail?name=gperftools-2.0.tar.gz

$ tar zxfv gperftools-2.0.tar.gz
$ cd gperftools-2.0
$ ./configure
$ make
⇒ libunwind が欲しいといわれる
http://download.savannah.gnu.org/releases/libunwind/からダウンロード
$ tar zxfv libunwind-1.0.1.tar.gz
$ cd libunwind-1.0.1
$ ./configure
$ make
error: ‘longjmp’ aliased to undefined symbol ‘_longjmp’
⇒ 失敗. CFLAGSを追加. 参考 : http://savannah.nongnu.org/bugs/?28397
$ ./configure CFLAGS="-U_FORTIFY_SOURCE"
$ make
$ sudo make install
⇒ 再度 google performance tool のコンパイル&インストールを行う
$ cd gperftools-2.0
$ ./configure
$ make
$ sudo make install