Code Monkey home page Code Monkey logo

Comments (6)

freddiev4 avatar freddiev4 commented on July 19, 2024

https://docs.python.org/3/library/profile.html

from phoodable.

freddiev4 avatar freddiev4 commented on July 19, 2024

https://code.djangoproject.com/wiki/ProfilingDjango

from phoodable.

freddiev4 avatar freddiev4 commented on July 19, 2024

https://github.com/jazzband/silk

from phoodable.

Simenhug avatar Simenhug commented on July 19, 2024

to view the profile stats for a file, do:
python -m cProfile file.py
screen shot 2017-12-03 at 5 44 39 pm
here's the parameters:
screen shot 2017-12-03 at 5 45 05 pm
the following functions took the longest time:
screen shot 2017-12-03 at 5 45 26 pm
screen shot 2017-12-03 at 5 45 34 pm
screen shot 2017-12-03 at 5 46 46 pm
screen shot 2017-12-03 at 5 47 02 pm
I've also created a prof file for views.py, but I don't know how to read it:
screen shot 2017-12-03 at 5 51 17 pm

from phoodable.

freddiev4 avatar freddiev4 commented on July 19, 2024

@Simenhug most of those functions that take more time are just coming from Django which we can't fix

from phoodable.

freddiev4 avatar freddiev4 commented on July 19, 2024

To visualize the .prof file you could use https://jiffyclub.github.io/snakeviz/

from phoodable.

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.