shark

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 Makefiels and g++). Can someone post step by step instructions for using shark on an app...

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 run). So far, so good. I'd like to write a script that takes in a bunch of shark session...

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

Hi all, 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 average performance for all files in $SomeDirectory. Where should I put the ...

"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 could not find the answer, either. Does someone know this? Thanks in advance. ...

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 -falign-loops=16 compiler flag. for (int i=0; i < 4; i++) { // line with the info ...

Shark tool on iphone crashes

Hi, 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. However, I could not reproduce this case. Does anyone have any idea what might be go...

CHUD 4.7.2 + complete frameworks ?

Is there any way to get CHUD 4.7.2 installed with full frameworks ? Currently it seems that you either have to settle for CHUD 4.7.2 installed as part of Xcode 3.2.2 without frameworks, or install the CHUD 4.6.2 package after Xcode 3.2.2 to get the frameworks, but then of course you only have the older 4.6.2 tools such as Shark 4.6.2 ? I...

How to update Shark so that it shows the new edited source code?

I've tweaked my code in Xcode after Shark complained about some performance bottlenecks. However, Sharp seems to cache that code and keeps showing me old aged stuff. Even after several builds and re-tries. Probably I must activate some fancy function that says "never cache anything" like in web browsers? ...

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, select Sampling->Network/iPhone Profiling - In the Shark window, select the radio button ...

CHUD/CHUD.h: No such file or directory or How to programmatically use shark with iPhone

Hi all, I've included #import <CHUD/CHUD.h> in my header files, and added "-F$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks" to my Framework Search Paths. I also added '-weak_framework CHUD' to my Other Linker Flags. I've tried copying the CHUD.framework folder from /System/Library/PrivateFrameworks to my iOS SDK's System/Librar...

Shark does not show function names

Hello, 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 linked in same project, with debug symbols on). Function names from standard lib ...

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 Start. This tutorial is one place that I used to set it up (so I think I'm following all ...