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
1
vote
1 answer

How to install a Library for C++ like Eigen and sharkML at vs code?

I am trying to install libraries like eigen, sharkMl, xtensor, and others in VSCode for C++. Please if anyone can help me to know the right way to do that.
1
vote
1 answer

How to attach MacOSX Shark to a process as soon as it starts?

Is there a way to tell Shark to attach to a process (by name) immediately as it sees it running ?
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
1
vote
1 answer

Launching a process with arguments and profile with shark

I need to sample a (cli) application with shark and pass parameters to it like so: shortest-path
user187676
1
vote
1 answer

"blkclr (mach_kernel)" shows up in mac's shark profiler. What does it do?

I am profiling a C program using Mac's Shark which shows that some of CPU time goes to "blkclr" in "mach_kernel". What does this kernel function do? I speculate it is related to memory allocation, but I am not sure. I have googled for some time, but…
user172818
  • 4,518
  • 1
  • 18
  • 20
1
vote
1 answer

Perform a batch of queries on a set of Shark performance logs?

I've been using Shark to benchmark a (very large) application and have a set of features I drill down into each time (e.g., focus on one function and remove stacks with particular others to determine the milliseconds for a particular feature on that…
leo
  • 11
  • 1
1
vote
1 answer

Shark was unable to find symbol information for this address range - iPhone

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: alt text http://img69.imageshack.us/img69/7871/screenshot20091117at503.png Clicking the "!" button yields: Shark was unable…
Elliot
  • 6,086
  • 11
  • 45
  • 57
1
vote
1 answer

How to get useful data from Shark?

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,…
HelloMoon
1
vote
1 answer

How can I edit Shark configurations on the iPhone?

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…
Carl Coryell-Martin
  • 3,410
  • 3
  • 26
  • 23
0
votes
3 answers

Where can I download Shark?

This is probably a rather dumb question but I've been looking around the Apple developer pages and I haven't found any download link to shark. I did a search on my hard drive and I only found shark plugins...
meds
  • 21,699
  • 37
  • 163
  • 314
0
votes
1 answer

Shark does not show function names

I want to use shark to profile my application(I used it before and it worked fine), but now it does not show any function name. I have only Unknown Library and address[unknown] in symbol column. Some project parts are static libraries(compiled and…
Mircea Ispas
  • 20,260
  • 32
  • 123
  • 211
0
votes
1 answer

Shark tool on iphone crashes

I am trying to use Shark to profile my app. However, it crashes after I hit "stop" and it analyzes and then goes to "load session". Only once when I decided not to select my app but chose to target "everything" did it actually display some trace. …
Joey
  • 7,537
  • 12
  • 52
  • 104
0
votes
1 answer

How to set that compiler flag?

Shark told me this: This instruction is the start of a loop that is not aligned to a 16-byte address boundary. For optimal performance, you should align the start of a hot loop using a compiler directive. With gcc 3.3 or later, use the…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
0
votes
1 answer

How to Profile a C-Program in a Loop of Shell Script, Using Shark on Mac?

I have a question about Shark-profiling on mac. Say if I have a C-program, compiled with: gcc -o mycprog mycprog.c -g -pg and also I have a shell script something like: for file in ($SomeDirectory) do mycprog $file done I need to profile the…
Peter Lee
  • 12,931
  • 11
  • 73
  • 100
0
votes
1 answer

Shark crashes on processor bandwidth trace

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…
Potatoswatter
  • 134,909
  • 25
  • 265
  • 421
0
votes
2 answers

Why could Shark be so slow?

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…
taw
  • 18,110
  • 15
  • 57
  • 76