Test::Valgrind is a perl wrapper for valgrind(1). T::V helps to find invalid memory operation.You can use it by command line like following: prove --exec 'perl -Iblib/lib -Iblib/arch -MTest::Valgrind' t/*.t Or use it as test script. You can p... 続きを読む
iogrind iogrind is a prototype I/O profiling tool, under development. It aims to give a fairly accurate picture of all the I/O your application would perform on a cold start: this can help to accelerate your application's cold start performan... 続きを読む
(2-3) Massif: ヒーププロファイラを使う Massifを用いるとプログラムが使用するヒープを検査する事が出来る。例えばどれぐらいメモリを使用しているのかとか、スタックの消費量とか。更にアウトプットとしてPostScript形式を使用しメモリ使用量を可視化する事... 続きを読む
あんま深く考えず valgrind を Ruby の head のテストに適用してみたところ、結構もにょもにょ漏れてるもんだなぁと気付いたので、いくつか修正してみたりしたのですが、その時案外困るのが、リークする最小のコードが簡単に作れない、ってことでした。 valgrin... 続きを読む