Questions tagged [shark]

Shark is Apple's legacy performance analysis tool, now replaced by Instruments. You probably want to use a different tag.

refers to Apple's legacy performance analysis tool, which has been replaced by Instruments.

It is very unlikely that new questions should use this tag. Instead, consider the following suggestions:

34 questions
18
votes
5 answers

What makes Apple's PowerPC memcpy so fast?

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…
user242091
15
votes
2 answers

Mac OS X Lion / Mountain Lion Cache Miss Profiling

Is there any tool to profile cache misses on Mac OS X Lion and iOS. If you know how to do that in instruments please help. Shark (CHUD package) do not install on Mac OS X Lion and later, so I can't use shark. At the same time I can't find the…
binaryzebra
  • 151
  • 4
13
votes
3 answers

How exactly can I use shark to profile my iPhone app?

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…
MrDatabase
  • 43,245
  • 41
  • 111
  • 153
8
votes
1 answer

Profiling iphone with shark: Nothing happens after pressing start

I have used shark in the past with Mac applications. I am now trying to set it up for the iPhone but it doesn't want to work. I have followed these instruction from another post: Build app and launch on device - Launch Shark - From the Shark menu,…
Steph
  • 1,711
  • 2
  • 13
  • 9
7
votes
3 answers

Optimizing C loops to get diagonal of array

The Great God Google has not been forthcoming to me with an explanation for some loop optimization issues. So, in sadness that I have insufficient Google-fu, I turn to you StackOverflow. I'm optimizing a C program for solving a specific system of…
Sevenless
  • 2,805
  • 4
  • 28
  • 47
7
votes
1 answer

Profiling g++ app on MacOSX?

My standard Linux way of profiling app is: 1) compile with g++ -pg 2) run prog 3) gprof Apparently gprof is broek on MacOSX 10.5, and I am supposed to use Shark. All the tutorials I've found aby Shark involves XCode (whereas my build is done with…
anon
  • 41,035
  • 53
  • 197
  • 293
5
votes
3 answers

Shark: how to filter down to one specific method

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…
Steph Thirion
  • 9,313
  • 9
  • 50
  • 58
4
votes
2 answers

Is there anything like Apple's Shark on Linux?

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…
JanePhanie
  • 579
  • 1
  • 6
  • 10
4
votes
2 answers

Why is "Run > Run with Performance Tool > Shark" always gray in Xcode? How to call that?

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…
HelloMoon
3
votes
1 answer

Using Shark with MonoTouch, no symbols

I'm trying to use Shark to profile a release build of my iPhone app but I don't have symbol information. Everything is "Unknown library" and hex addresses. I followed these instructions and added -nosymbolstrip -aot="iphone-abi" to Extra Arguments,…
Mike
  • 81
  • 3
3
votes
2 answers

Using Shark to profile an iPhone game, pressing "Start" doesn't do anything

I've done a decent amount of reading about how to profile iPod applications using Shark, and all works well until I try to click "Start" (and nothing happens). I've tried profiling an individual process (app), all processes, and it doesn't seem to…
Marty
  • 1,182
  • 2
  • 13
  • 22
3
votes
3 answers

Shark & MallocDebug for iPhone Applications

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…
Asad R.
  • 1,051
  • 13
  • 20
2
votes
2 answers

Shark L2 cache profiling won't take samples

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.
None
2
votes
1 answer

shark does not show source code

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…
Swapnil Luktuke
  • 10,385
  • 2
  • 35
  • 58
1
vote
1 answer

Shark for profiling iPhone app

I am using Shark to profile my application on iphone. As per instruction in Shark user guide from…
Manish
  • 417
  • 1
  • 6
  • 14
1
2 3