Git Product home page Git Product logo

Comments (6)

bhb avatar bhb commented on August 31, 2024

It looks like it's a problem with perftools.rb, unfortunately.

tmm1/perftools.rb#26

Hopefully it'll get fixed soon.

from rack-perftools_profiler.

ylluminate avatar ylluminate commented on August 31, 2024

Thanks for that. Sad it seems that that has been hanging around for so long.

On Feb 2, 2012, at 3:58 PM, Ben Brinckerhoff wrote:

It looks like it's a problem with perftools.rb, unfortunately.

tmm1/perftools.rb#26

Hopefully it'll get fixed soon.


Reply to this email directly or view it on GitHub:
#16 (comment)

from rack-perftools_profiler.

ylluminate avatar ylluminate commented on August 31, 2024

Very quick fix: tmm1/perftools.rb#39

from rack-perftools_profiler.

bhb avatar bhb commented on August 31, 2024

Very cool. Thanks for posting that here!

from rack-perftools_profiler.

ylluminate avatar ylluminate commented on August 31, 2024

@bhb no problem! I am curious, execution did seem to work okay, however I did end up with the following output while running it on my dev server (http://devel.mydomain.tld/some-page?profile=true) vs something more meaningful as expected and was hopeful for your help in interpreting this output:

Running the command 'bundle exec pprof.rb --gif /private/var/folders/65/l2_dsbdd2hd26hfqqbv9brnw0000gn/T/rack_perftools_profiler.prof' exited with status 1

Standard error:
/Users/username/.rvm/gems/ruby-1.9.3-p0/gems/perftools.rb-0.5.6/bin/pprof.rb:3: Use RbConfig instead of obsolete and deprecated Config.
Using local file /Users/username/.rvm/rubies/ruby-1.9.3-p0/bin/ruby.
Using local file /private/var/folders/65/l2_dsbdd2hd26hfqqbv9brnw0000gn/T/rack_perftools_profiler.prof.
No nodes to print

from rack-perftools_profiler.

bhb avatar bhb commented on August 31, 2024

"No nodes to print" just means that the page completed so quickly, the profiler didn't get a chance to sample anything? You can try running more times (e.g. http://devel.mydomain.tld/some-page?profile=true&times=10 or increase the frequency when configuring the middleware.

Admittedly, it's a terrible error message. My intent was to give the error message from perftools.rb directly, so it is easy to debug problems, but in the case of this error message (which is common), it'd be good to explain what it means.

from rack-perftools_profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.