From: Eric Hodel Date: 2002-12-03T11:17:56+09:00 Subject: Re: Ruby Memory Profile --YZQs1kEQY307C4ut Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Squidster (squidster@techie.com) wrote: > Hello Rubyists, > I'm writing quite a quiet a resource hungry program (current about > 3300 lines of Ruby code). >=20 > I think I've got the running time down to a reasonable level (of > course CPU is 100% all the way), thanks to profile.rb and rbprof.rb! >=20 > But when I look at top, memory consumption is crazy; it's about 2MB > every second! On my 1GB system, it was swapping (thanks to the Linux > kernel, still not thrashing) in about 10 minutes... You mean memory consumption increases by 2MB/sec? Perhaps you've tickled a bug in a C extension that makes it leak... > So my question: Anybody has built or know of a memory profiler in > Ruby? Somewhat akin to profile.rb/rbprof.rb but for memory usage... --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --YZQs1kEQY307C4ut Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE97BRRMypVHHlsnwQRAs0DAKDGgtol2mEJPz6MbMZROmfd6Ace6gCgg/j5 /vFAxYYCwgIQFhnRAYov0eQ= =rwAN -----END PGP SIGNATURE----- --YZQs1kEQY307C4ut--