Hi all -- If someone can tell me where #toplevel is I will try to spend some time on this myself.

-- Joe

On 12/31/05, Joseph Moore <[EMAIL PROTECTED]> wrote:
Mike -- Thanks for the tip!  I added 'require profile' to eclipseDebug.rb and got some interesting console output, though for some reason I only got output once in a while.

In a nutshell, virtually all of the time is spent in "#toplevel".  Hopefully some one knows what that means.

I ran an extremely simple TestCase class with 3 test methods.  Here is the console output:

ruby 1.8.2 debugger listens on port 2077
  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
  0.05     0.03      0.03        1    31.00    31.00  Profiler__.start_profile
  0.02     0.05      0.01        2     7.50     7.50  Kernel.require
  0.00     0.05      0.00        1     0.00     0.00  Fixnum#to_s
  0.00     0.05      0.00        1     0.00 67265.00  #toplevel
  0.00     0.05      0.00        3     0.00     0.00  XmlPrinter#debug
  0.00     0.05      0.00        1     0.00     0.00  TCPServer#new
  0.00     0.05      0.00        3     0.00     0.00  Array#[]
  0.00      0.05      0.00        2     0.00     0.00  Module#attr
  0.00     0.05      0.00        2     0.00     0.00  IO#write
  0.00     0.05      0.00        1     0.00     0.00  Kernel.respond_to?


-- Joe



On 12/21/05, Mike Butler <[EMAIL PROTECTED]> wrote:
On 20 Dec 2005, at 22:48, Markus Barchfeld wrote:

>> Hi all. The debugger is extremely slow -- taking minutes instead
>> of seconds to run unit tests or luanch WEBrick in debug mode.
>>  Any advice for speeding this up? Is there progress in this area?
>>
>>
>
> Unfortunately not, I am too patient :-)
>
> I am not sure how much potential for optimization is in
> eclipseDebug.rb. Does anybody know a simple way to instrument ruby
> code in order to get information about how much time is spent in
> particular lines of code or methods?
>



     -r profile from the command line, or from code simply add
require 'profile'

     Or were you looking for something different?

     Cheers,

             Mike.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Rubyeclipse-development mailing list
Rubyeclipse-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development


Reply via email to