bhb/rack-perftools_profiler

?profile=true causes error when using mode: objects

Closed this issue · 4 comments

ncri commented

Adding ?profile=true to my url following the instructions i get this:

PROFILE: interrupts/evictions/bytes = 0/0/64
Running the command 'bundle exec pprof.rb --gif /private/var/folders/7h/y502phtj2b1g8cjs0c173hrw0000gn/T/rack_perftools_profiler.prof' exited with status 1
Using local file /Users/nico/.rvm/rubies/ruby-2.0.0-p247/bin/ruby.
Using local file /private/var/folders/7h/y502phtj2b1g8cjs0c173hrw0000gn/T/rack_perftools_profiler.prof.
No nodes to print
bhb commented

That can occur if the program was so fast that it could not be sampled. Try profiling a slower request to see if you get anything. You can also try increasing the frequency.

ncri commented

Nope, whatever page I test (and my app is not the fastest) I get this error. Also upping the frequency doesn't help. In the browser the error looks like this:

Running the command 'bundle exec pprof.rb --text /private/var/folders/7h/y502phtj2b1g8cjs0c173hrw0000gn/T/rack_perftools_profiler.prof' failed to generate a file

Standard error:
Using local file /Users/nico/.rvm/rubies/ruby-2.0.0-p247/bin/ruby.
Using local file /private/var/folders/7h/y502phtj2b1g8cjs0c173hrw0000gn/T/rack_perftools_profiler.prof.

It only appears with mode=objects. Which is the only mode I need unfortunately...

bhb commented

Ah, sorry. I missed the part about it only failing in "objects" mode.

It sounds like this bug in perftools.rb to me. It's been fixed but a newer gem has not yet been published. Can you try installing the gem from git with Bundler?

ncri commented

thx, yes, it works now, but takes ages for a single request... ;-)