[CalendarServer-users] Unable to have a stable setup for CalendarServer 4.2
Andre LaBranche
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...
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20130315/c3e60bc8/attachment.html>
More information about the calendarserver-users
mailing list