I'm new to Shark, and I was wondering if it's possible to narrow down a time sample to one specific method?
Let's say I'd like to, just for the sake of it, know how much resources have been used on calls to the method 'count' for all NSArray (or subclasses) instances.
...
Hi All
I am using Shark to profile my application on iphone.
As per instruction in Shark user guide from
http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/SharkUserGuide/SelectingExecutiontoSampleorTrace/SelectingExecutiontoSampleorTrace.html#//apple_ref/doc/uid/TP40005233-CH13-SW19
I am able to generate...
I'm trying to use Shark to check for L2 cache misses, but it won't work. All of the other Shark sampling modes work fine.
...
I'm trying to optimize an iPhone game that I am developing which uses the Cocos2D-iphone framework.
I want to use Shark to measure performance but "Run->Start with Performance Tool->Shark" is disabled in XCode (Instruments Leaks works fine). I've configured the build to "Generate Profiling Code", tried building for both the device and t...
The default shark 'Time Profile' configuration on the iPhone appears to sample every 1 ms. I'd like to tweak it to sample every 100us. I know this is possible to do on my local machine by editing the shark configurations, but I don't see a way to edit the configurations on the phone.
Thank you,
...
I want to use Shark on OS 10.5 to do some basic profiling of my iPhone game (Open GL ES + Objective C). How exactly can I do this? I've read tutorials but they are too verbose for me after a full day of coding at work and a few hours of iPhone development afterwards.
...
I was reading at an apple site that shark captures everything that is running on my mac. Thats stupid. I want it to be constrained only to my iPhone app on the device, but there's just nothing to select the executable or something like that. Also in xcode, "Run > Run with Performance Tool > Shark" is grayed out. But shark 4.6x is running...
After a while I figured out I could bind Shark to the process of my executable in the simulator. Not on the device though. Well, anyways, here is something that makes absolutely zero sense, but looks bad:
42.2% 42.2% QuartzCore sw_scanline(int, int, int, ogl_poly_vert*, ogl_poly_vert*, ogl_poly_vert*, ogl_poly_vert*, unsigned int, voi...
The docs say:
Important: Shark cannot capture symbol
information on the iPhone itself, so
“raw” sessions recorded from an iPhone
will appear in Shark labeled only
based on sample address ranges. This
can make it very difficult to
understand the results that Shark
returns. Instead, you must tell Shark
to recover symbol...
After upgrade to Snow Leopard and downloading the new Xcode along with all new developer tools, Shark does not start. I launch it but it never appears. Is this a known issue? Is there a solution to get it running?
...
I set it to iPhone/Network mode, but the device never appears anywhere. Connected and running an app through xcode. Do you know a useful tutorial for this?
...
There's this Shark entry in my run menu. But it's always inactive. What's wrong? New xcode with Snow Leopard. Installed all developer tools including CHUD from scratch. Shark itself runs but sees no devices, even though xcode does. it builds and runs on the device. no issues.
...
In this answer Brian explained how to connect Shark with the device. I do it exactly this way, but Shark never lists my device. Even if Xcode launches my app on it and the app runs. I get console Logs and everything. It communicates with the mac. But Shark doesn't see it. What could cause this? Snow Leopard, btw...
...
I'm trying to use Shark to determine which method(s) are taking the most time in my iPhone app. After sampling, I get this:
Clicking the "!" button yields:
Shark was unable to find symbol
information for this address range.
Typically this happens because the
application was compiled without
symbols or they have been subsequ...
I'm trying to profile Ruby interpreter. I run shark -i ./ruby bm_sudoku.rb or something like that, the script finishes in less than a second, and then Shark goes to "CHUDData - Analyzing samples... 99.3%.." point and stays there frozen for 10 minutes or so. It finishes eventually, it's just so ridiculously slow it's pretty much unusable....
I've written several copy functions in search of a good memory strategy on PowerPC. Using the Altivec or fp registers with cache hints (dcb*) doubles the performance over a simple byte copy loop for large data. Initially pleased with that, I threw in a regular memcpy to see how it compared... 10x faster than my best! I have no intention ...
We are trying to run shark on our iphone application. However, in the analyzed samples it does not list any of our application function. All that is listed are the libraries and when we click on any of those, the assembly code is visible.
Most of the sites mention about 'Generate Debug Symbols' option when building the app; I am not able...
I'm looking for alternatives to Apple's Shark on Linux. I'm looking for a statistical profiler - not gprof. I know about oprofile, but would like something a bit more polished. Appreciate any suggestions with advantages/disadvantages relative to Shark.
...
Hi have a problem when trying to use shark for profiling my iphone app.
it worked a few times (no idea why) but most of the time, i see my iphone in the list of profilable devices, but it's status is set to -?- and i cannot select it for profiling
does someone know this issue and how to resolve it?
...
Shark started crashing on me when I use the "Processor Bandwidth (Core 2)" mode of analysis. It collects the samples, spends the time to analyze them, and crashes with a bus error about when the window should come up.
First I thought it might be because I've been running on low memory. I installed the latest system updates, rebooted, tr...