Measuring memory using ruby-prof - help required

Hi All,

I have a requirement wherein, I need to calculate memory utilized during
particular external function calls.

After exploring I came across gem - ruby-prof which was suitable for
returning me memory usage.

But after installing, ruby-prof was able to return only CPU utilization.
It was written that one will require patch version of ruby-prof in order
to return memory utilization.

I could search the patch for ruby prof on net but was unable to apply
that
to ruby-prof gem. Problem was due to some incorrect revision.

I also tried github for applying patch but with no success.

Can anyone please provide me patched version of ruby- prof which can be
used to calculate memory usage.

Or else if you have any other idea for calculating memory usage. Thanks

Regards,
Jitesh

This message and any attachments (the “message”) is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
Do not print this message unless it is necessary,
consider the environment.

            ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le
“message”) sont etablis a l’intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d’en avertir
immediatement l’expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L’internet ne permettant pas
d’assurer l’integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l’hypothese ou il aurait ete modifie.
N’imprimez ce message que si necessaire,
pensez a l’environnement.

I could search the patch for ruby prof on net but was unable to apply
that
to ruby-prof gem. Problem was due to some incorrect revision.

the patch should patch “core”

Also you “should” get working memory profiling if you use REE. Which is
only available on posix are you on windows?

If I were you I’d do my own profiling, just use the os gem:

OS.rss_bytes
=> 14823424

Also there is memprof:
http://timetobleed.com/memprof-a-ruby-level-memory-profiler

that’s pretty aggressive :slight_smile:
-roger-

On 5/30/11, [email protected]
[email protected] wrote:

to return memory utilization.

I could search the patch for ruby prof on net but was unable to apply that
to ruby-prof gem. Problem was due to some incorrect revision.

I also tried github for applying patch but with no success.

Can anyone please provide me patched version of ruby- prof which can be
used to calculate memory usage.

Or else if you have any other idea for calculating memory usage. Thanks

which OS? Anyway ruby-prof today requires a patched ruby interpreter,
then it can work with memory.
GL!
-r

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs