Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use PyCharm to view profiling data

Does anyone know if there is a way to open external .pstat files inside PyCharm for viewing? When I try to, I'm being asked to select the file type, but there doesn't seem to be the option for it (even those the view is used for internally generated profile data).

like image 476
Dmitry B. Avatar asked Nov 25 '15 00:11

Dmitry B.


People also ask

How do you do profiling in python?

Method 3: Python cProfile Python includes a built-in module called cProfile which is used to measure the execution time of a program. The cProfiler module provides all information about how long the program is executing and how many times the function gets called in a program.


1 Answers

It's also under Tools->Open cProfile Snapshot

like image 93
Dmitry B. Avatar answered Nov 13 '22 18:11

Dmitry B.