On Mar 15, 2013, at 11:37 AM, Axel Rau <axel....@chaos1.de> wrote:
> Currently I'm trying to learn how to profile python processes...
Try runsnake.
Most of the hard work is already done!
All we need to do is create a directory to hold our stats, run the server with
an additional cli argument, perform the operations we wish to profile, then
stop the server. Then feed the pstats file to runsnake
• mkdir foostats ; ./run -S foostats
• Do stuff
• Stop server (must be a graceful exit!)
• Look in foostats for the goods.
Using Run Snake Run:
First, install it:
easy_install runsnakerun
Next, attempt to start it:
runsnake
You may be missing 'wx', if so, get it.
Next, just feed one of your pstats files to Run Snake Run, then bear witness to
the glory of many nested and brightly colored rounded rects, in addition to the
list of functions encountered during profiling, sortable by a variety of
criteria.
_______________________________________________
calendarserver-users mailing list
calendarserver-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/calendarserver-users