From: "Shot (Piotr Szotkowski)" Date: 2008-02-14T04:01:35+09:00 Subject: Memory leaks with ruby-prof 0.6.0 on Ruby 1.9 --phbq2bkSb+hZnunM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, good folks of ruby-talk. I=E2=80=99m running into memory leaking issues when trying to profile my code with ruby-prof 0.6.0 on Ruby 1.9. Two scenarios, in which 1.8 is Ubuntu=E2=80=99s packaged Ruby 1.8.6.p111, while 1.9 is hand-compiled Ruby 1.9.0.r14709. ruby-prof 0.6.0 from RubyGems in both cases. Memory usage reported with the proprietary, highly scientific method of Looking at Live Htop Changes in Memory Usage for the Whole System=E2=84= =A2. Times are time=E2=80=99s real/user, the ruby-prof=E2=80=99s printer is grap= h_html. Ruby 1.8: * the code ran with plain Ruby executes in 1m41s/1m22s, the memory consumption stays below 300 MiB. * the code ran with ruby-prof executes in 4m35s/2m49s, the memory consumption stays below 320 MiB. Ruby 1.9: * the code ran with plain Ruby executes in 0m30s/0m30s, the memory consumption stays below 310 MiB. * the code ran with ruby-prof executes in=E2=80=A6 well, I stopped the exec= ution when the memory consumption passed my laptop=E2=80=99s 1 GiB and made a 350 MiB dent at my temp partition. Are there any known memory issues with ruby-prof 0.6.0 on Ruby 1.9? Unfortunately, the code under profiling being the code behind my PhD, I can=E2=80=99t currently open source it (I will once my research is comple= te); I can send it to people off-list (provided it doesn=E2=80=99t get shared further). Thanks in advance for any comments/ideas. -- Shot --=20 When I do it, it's development. When you do it, it's coding. When he does it, it's mindless hacking. -- Paul Tomblin --phbq2bkSb+hZnunM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFHszhhi/mCfdEo8UoRAjNDAJ9lYB+4ZBM488sMwlzk1g2fQGwcnQCgmTGS gw2v/MkZunyuMHHdWgVX7Q0= =TpEt -----END PGP SIGNATURE----- --phbq2bkSb+hZnunM--