How can I use the Pstats???
I don’t understand at all the information on PandaManual
How can I use the Pstats???
I don’t understand at all the information on PandaManual
first.
start pstats itself. under linux it’s as easy as running pstats in a terminal of your choice. under windows you have to find the pstats executable and run it.
then just put those 2 lines at the very beginning of your code (before the directstart import)
from pandac.PandaModules import *
loadPrcFileData("", " want-pstats 1")
and run your application. the pstats-windows should pop up showing graphs and menus.
Thomas
^^
He was faster.
delete it please
THANKS A LOT!!!
Very helpful post. I was wondering this myself, but wasn’t going to ask until I get around to actually needing to profile something.