Questions tagged [ruby-prof]
34 questions
0
votes
1 answer
Negative times in ruby-prof?
I am using rspec-prof, which is based on ruby-prof, to profile a spec that takes quite some time. However, I cannot interpret the results that I get, because they are reporting negative times. Am I using rspec-prof/ruby-prof incorrectly? Is this a…

Kohanz
- 1,510
- 16
- 35
0
votes
1 answer
Ruby on Rails: rb_class_superclass not located in msvcrt-ruby191.dll (ruby-prof error?)
So, long story short, I had o format and reinstall my OS hence all my dev utilities.
git env sorted.
DevKit was fine.
Sphinx/mysql fine.
Bundle installed perfectly.
Everything is gravy until I go to rake db:create and build my…

RickyD
- 401
- 4
- 16
-1
votes
1 answer
ruby-prof says Ruby increment operator (+=) takes 25 seconds
I'm trying to profile some Ruby code I wrote using ruby-prof gem and see that basic operations like i += 1 (listed as Fixnum#+ in the table below) take over 24 seconds to run (in this particular test, the operation is performed 2,199,978 times). Is…

Say No To Censorship
- 537
- 1
- 15
- 32
-2
votes
4 answers
Using ruby-prof to get runtime difference between "1+1" and "1x2"
Attempting to profile the difference in runtime between "1+1" and "1x2" using Ruby and the gem ruby-prof.
Install the gem and hacked together some code that appears to work, but does not give me the answer I'm looking for, that being the difference…

blunders
- 3,619
- 10
- 43
- 65