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?
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.
A tracing profiler that is multithreading, asyncio and gevent aware.
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.
You can use cProfile
or profile
to profile your code.
And if you need memory profiling, you can use guppy
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With