Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shark takes forever the first time after launching it



I would guess that you have symbols for some of the applications that are running and that they have _lots_ of symbols. When Shark is processing samples, it is spending most of its time trying to find symbols and source information for program addresses that it saw executing during sampling. Internally, Shark caches these entries so that it only needs to be looked up once per launch unless the program changes. So, the first time you sample, the processing will need to collect the symbols for all of the programs that Shark saw executing during the sample, but subsequent sessions will frequently hit in the cache.
--
Rick Altherr
Architecture and Performance Group
email@hidden



On Jul 24, 2006, at 10:03 AM, Stefan Haller wrote:

When I launch Shark and try to sample my application (no matter for how
long), it takes like 10 minutes until Shark opens the results window.
It displays the spinning progress bar, saying "Processing Samples" all
the time.


After that, I can sample like I'm used to while Shark is running (it
takes a couple of seconds, at most); if I quit Shark and launch it
again, it takes 10 minutes again.

I'm on a MacBook Pro, but a collegue also has this behaviour on a G4; on
a quad G5 it works fine though.


System version is 10.4.7, Xcode 2.3, Chud 4.3.3 (4).

Any ideas?


--
Stefan Haller
Ableton
http://www.ableton.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/raltherr% 40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Shark takes forever the first time after launching it (From: email@hidden (Stefan Haller))



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.