dtrace and missing a good chunk of startup time
dtrace and missing a good chunk of startup time
- Subject: dtrace and missing a good chunk of startup time
- From: Joel Reymont <email@hidden>
- Date: Sat, 29 Aug 2009 00:16:07 +0100
I seem to be missing a good chunk of startup time with my reworked
approach.
I used to be able to stop tracing Safari once NSApplicationMain was
entered. This was with 'dtrace -c...'. I'm no longer able to do so
with exec-success, stop and attaching to the stopped process, e.g.
./d Safari startup.d stop-nsapp.d
where startup.d:
BEGIN
{
start = timestamp;
}
END
{
this->total = timestamp - start;
printf("Total: %u.ums\n", this->total / 1000000, this->total %
1000000);
}
and stop-nsapp.d:
pid$target::NSApplicationMain:entry
{
exit(0);
}
Any suggestions on how to fix this? There must be some kind of a race
between dtrace probes and Safari, as it's being awaken with 'kill -
CONT'.
Thanks, Joel
[1] http://github.com/wagerlabs/firefox-startup/blob/75f719f3a3cdb380071ef8c354cf52564ac4754d/d
---
fastest mac firefox!
http://wagerlabs.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden