• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
dtrace and missing a good chunk of startup time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >dyld cache: shared_region_roots/Applications.paths (From: Joel Reymont <email@hidden>)
 >Re: dyld cache: shared_region_roots/Applications.paths (From: Joel Reymont <email@hidden>)
 >Re: dyld cache: shared_region_roots/Applications.paths (From: Jean-Daniel Dupas <email@hidden>)
 >Re: dyld cache: shared_region_roots/Applications.paths (From: Joel Reymont <email@hidden>)
 >Re: dyld cache: shared_region_roots/Applications.paths (From: Jonas Maebe <email@hidden>)
 >where does initialization time go? (From: Joel Reymont <email@hidden>)
 >Re: where does initialization time go? (From: Eric Gouriou <email@hidden>)
 >Re: where does initialization time go? (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: Darwin Open Source Release
  • Next by Date: Relating dtrace thread ids to Java threads
  • Previous by thread: Re: where does initialization time go?
  • Next by thread: Re: where does initialization time go?
  • Index(es):
    • Date
    • Thread