Monitoring time spent running classes and methods

M

Mario Ruiz

I would like to know if there is any way to know how much time my
classes and methods are running. I would like to improve it running the
test cases faster so I need to know which ones should be the first to
improve.

So... my question is... how can I know the running time for every single
method and class? I mean without including in every method a log at the
beginning and end since I have hundreds of them.

Thanks in advance.
 
F

Florian Gilcher

I would like to know if there is any way to know how much time my
classes and methods are running. I would like to improve it running
the
test cases faster so I need to know which ones should be the first to
improve.

So... my question is... how can I know the running time for every
single
method and class? I mean without including in every method a log at
the
beginning and end since I have hundreds of them.

Thanks in advance.

I would say: thats highly dependant on the operating system you use.
For example,
on OS X and Solaris, I would suggest to use dtrace for such a task.

Regards,
Florian

--
Florian Gilcher

smtp: (e-mail address removed)
jabber: (e-mail address removed)
gpg: 533148E2
 
A

Alex Fenton

Mario said:
So... my question is... how can I know the running time for every single
method and class?

Run the script you're interested in tracing with -rprofile

ruby -rprofile how_long_does_this_stuff_take.rb

a
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top