Giter Club home page Giter Club logo

Comments (3)

bhb avatar bhb commented on July 22, 2024

That error means that the profiler has not collected any data because there were too few objects created, but I would think that an action that is taking long would generate a ton of objects though.

Can you see if the problem is in your installation of perftools.rb on that version of REE? Try the following code using REE-1.8.7-2011.03

#objects.rb
require 'perftools'

PerfTools::CpuProfiler.start("/tmp/objects_profile") do
  1_000_000.times{ Array.new(10) }
end
CPUPROFILE_OBJECTS=1 ruby objects.rb
pprof.rb --pdf /tmp/objects_profile > /tmp/objects_profile.pdf && open /tmp/objects_profile.pdf

That generates a graph on my machine. If that doesn't work for you, then it looks like a bug in perftools.rb. If it does work, please let me know and I'll dig in further!

from rack-perftools_profiler.

botandrose avatar botandrose commented on July 22, 2024

@bhb thanks for the test case! It confirms that the issue is with perftools.rb... tmm1/perftools.rb#44 . In the meantime, I'm going to try some other rubies.

from rack-perftools_profiler.

bhb avatar bhb commented on July 22, 2024

No worries. Happy to help!

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.