Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python tool for performance profiling [duplicate]

Possible Duplicate:
How can you profile a Python script?

What visual tools do you know, something similar to JProfiler for Java, to analyze performance of Python applications?

like image 845
Seitaridis Avatar asked Dec 15 '10 17:12

Seitaridis


People also ask

What does @profile do in python?

Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how long various parts of the program executed. These statistics can be formatted into reports via the pstats module.

What is python Yappi?

A tracing profiler that is multithreading, asyncio and gevent aware.

How does python profiler work?

Tracing profilers record every function call your program makes and then print out a report at the end. Sampling profilers take a more statistical approach – they record your program's stack every few milliseconds and then report the results.


1 Answers

You can use cProfile or profile to profile your code.

And if you need memory profiling, you can use guppy.

like image 91
amillerrhodes Avatar answered Oct 05 '22 00:10

amillerrhodes