Git Product home page Git Product logo

Comments (5)

bhb avatar bhb commented on August 31, 2024

Can you confirm it's not an issue with perftools.rb itself? Can you see if you can successfully generate profiling data via these instructions. Thanks!

from rack-perftools_profiler.

noahgibbs avatar noahgibbs commented on August 31, 2024

When I run the command on the command line that was being run by the /__data__ URL I get the same result. So it's really quite likely it's an issue with Perftools itself.

However, the test programs at the link you gave seem to work without error.

from rack-perftools_profiler.

bhb avatar bhb commented on August 31, 2024

That's interesting.

I have seen problems in the past where the data file (rack_perftools_profiler.prof) didn't have enough data to actually extract a useful visualization. Ideally, if that happened, pprof.rb would give a useful message, but I have seen cases where it just crashes. I haven't seen that specific error message before, but it's my best guess at this point.

Can you try two things?

  1. Instead of navigating to /__data__ can you instead go to /__data__?printer=text. I wonder if the issue is generating the gif or if any data extraction has the problem.
  2. Can you set the mode to :walltime and then visit a endpoint where you've added a sleep to force a long execution time. Then go to /__data__ with both the text and gif printer.

from rack-perftools_profiler.

noahgibbs avatar noahgibbs commented on August 31, 2024

At this point, I no longer have the example set up. However, it's very unlikely (in that specific case) that the problem was too little data, in the sense of just not running for long enough.

from rack-perftools_profiler.

bhb avatar bhb commented on August 31, 2024

Darn. Well, unfortunately, I'm out of ideas. I'm confident that the middleware is making calls to perftools.rb correctly, so I'm guessing it's a bug in perftools.rb with your specific data.

I appreciate you reporting this, but I'm not sure what else to do that this point. I'm going to close now.

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.