# Memory leaks with ruby-prof 0.6.0 on Ruby 1.9

**URL:** <https://www.ruby-forum.com/t/memory-leaks-with-ruby-prof-0-6-0-on-ruby-1-9/129045>\
**Category:** Ruby\
**Created:** [February 13, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/memory-leaks-with-ruby-prof-0-6-0-on-ruby-1-9/129045 "2008-02-13T20:04:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shot\_SPiotr\_S.S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Post date:** [February 13, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/memory-leaks-with-ruby-prof-0-6-0-on-ruby-1-9/129045/1 "2008-02-13T20:04:29Z")

</div>

Hello, good folks of ruby-talk.

Iâ€™m 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â€™s 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â„¢.  
Times are timeâ€™s real/user, the ruby-profâ€™s printer is graph\_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â€¦ well, I stopped the execution  
when the memory consumption passed my laptopâ€™s 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â€™t currently open source it (I will once my research is complete);  
I can send it to people off-list (provided it doesnâ€™t get shared  
further).

Thanks in advance for any comments/ideas.

– Shot
