Giter Site home page Giter Site logo

Comments (6)

jiffyclub avatar jiffyclub commented on September 26, 2024

I see this error when using SnakeViz with files produced by the profile module. SnakeViz 0.2 only works with output from the cProfile module. Can you verify you're getting this error with cProfile output?

The second error occurs because profiles generated by Python 2 are not compatible with Python 3. You need to run SnakeViz with the same version of Python used to generate the file.

from snakeviz.

nav-agarwal avatar nav-agarwal commented on September 26, 2024

Thanks for the quick response.

I am using cProfile

import cProfile
cpr = cProfile.Profile()
cpr.enable()
# Code to be profiled
# ....
cpr.create_stats()
prfile = os.path.join("/var/log/profiler_output", "dispatch_%s_%s.prof" % ("check_", str(time.time())))
cpr.dump_stats(prfile)

from snakeviz.

jiffyclub avatar jiffyclub commented on September 26, 2024

Okay, thanks for the report. It's on the list of things to fix!

from snakeviz.

nav-agarwal avatar nav-agarwal commented on September 26, 2024

Any estimate on the release date?

from snakeviz.

jiffyclub avatar jiffyclub commented on September 26, 2024

Chances are I won't get time to work on this until after the New Year.

from snakeviz.

jiffyclub avatar jiffyclub commented on September 26, 2024

@nav-agarwal, could try installing from the div-zero-error branch and see if that allows you to see your profile? An easy way to install that with pip is to run:

pip install -U https://github.com/jiffyclub/snakeviz/archive/div-zero-error.zip

Thanks!

from snakeviz.

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.