Thursday, January 19, 2006

You're not seeing me from my best side

Ugh:

Irulan:~/Projects/squib matt$ action_profiler WelcomeController#index
WARNING: overridding NODE *
/opt/local/lib/ruby/siteruby/1.8/rubygems/customrequire.rb:27: [BUG] Bus Error
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0]
Abort trap

That's not what I wanted to see. Yet ZenProfiler is working:

Irulan:/opt/local/lib/ruby/gems/1.8/gems/ZenHacks-1.0.1 matt$ sh zenprofile-demo.sh 
zenspider profiler:
Iter = 5000, T = 0.70851300 sec, 0.00014170 sec / iter
  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
100.00     0.61      0.61        1   610.00   610.00  Range#each
 90.16     1.16      0.55     5000     0.11     0.11  Factorial#factorial
 77.05     1.63      0.47     5000     0.09     0.09  Integer#downto
 16.39     1.73      0.10        1   100.00   100.00  dummy
 16.39     1.83      0.10    20000     0.00     0.00  Fixnum#*
  0.00     1.83      0.00        1     0.00     0.00  Fixnum#to_s
  0.00     1.83      0.00        1     0.00     0.00  ZenProfiler#instance
  0.00     1.83      0.00        2     0.00     0.00  Time#initialize
  0.00     1.83      0.00        1     0.00     0.00  String#to_i
  0.00     1.83      0.00        1     0.00     0.00  Object#initialize
  0.00     1.83      0.00        1     0.00     0.00  IO#write
  0.00     1.83      0.00        1     0.00     0.00  Time#-
  0.00     1.83      0.00        1     0.00     0.00  Module#method_added
  0.00     1.83      0.00        1     0.00     0.00  Float#/
  0.00     1.83      0.00        1     0.00     0.00  Array#shift
  0.00     1.83      0.00        2     0.00     0.00  Time#now
  0.00     1.83      0.00        1     0.00     0.00  Class#new
  0.00     1.83      0.00        1     0.00     0.00  Kernel.printf
  0.00     1.83      0.00        1     0.00   610.00  #toplevel
  0.00     1.83      0.00        1     0.00     0.00  Class#inherited

real 0m1.631s user 0m0.704s sys 0m0.295s

I did wonder about the witches brew that I ended up with when getting Ruby 1.8.4 via DarwinPorts. Damn.

19/01/2006 13:55 by Matt Mower | Permalink | comments:
More about: