[CalendarServer-users] Unable to have a stable setup for CalendarServer 4.2
dre at apple.com
Fri Mar 15 11:46:03 PDT 2013
On Mar 15, 2013, at 11:37 AM, Axel Rau <Axel.Rau at Chaos1.DE> wrote:
> Currently I'm trying to learn how to profile python processes...
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:
Next, attempt to start it:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the calendarserver-users