Re: [Pyobjc-dev] Startup time woes
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-01-17 23:42:22
|
Jack Jansen wrote: > If running the profiler is difficult you could start with a ktrace > (which is supported since 10.2, yeah!). Start python, in another > window do "ktrace -p pid", do the Python bits you're interested in > and then do "ktrace -C". You'll only get a system call trace, but if > you show it with "kdump -T" you'll get timestamps and it may give an > idea where the time is going. Hm, since this is about the startup time of an app bundle, I don't see how to get the pid in time to start ktrace. Hm, maybe the app should do something like os.system("ktrace -p %s" % os.getpid())? Would that work? After reading the man page: yeah, should work, -f <outfile> should come in handy. Off to bed now, Just |