[SOLVED] Shark + xcode + C++
[SOLVED] Shark + xcode + C++
- Subject: [SOLVED] Shark + xcode + C++
- From: Alejandro Aragon <email@hidden>
- Date: Fri, 13 Mar 2009 01:07:52 -0500
Hi everyone,
I found the problem. In my code I am using the gnuplot visualization
tool which I installed through macports. I realized that the problem
was a couple of environmental variables that were not passed to Shark.
The DISPLAY variable, which value is /tmp/launch-TrcsRg/:0 and I have
no idea where is defined. The other is the PATH environmental
variable, that of course has to refer to the macports installation
directory: /opt/local/bin:/opt/local/sbin:$PATH.
Shark now is able to give me the profiling information for the code.
This is very nice because it seems that only the program is profiled.
Before I used to run Shark on every single process in the machine, and
then select the process that I wanted to profile. It seems that doing
it this way is way more efficient.
aa
On Mar 12, 2009, at 9:19 PM, Stephen Northcott wrote:
If this is happening just after you click the final window to launch
the project.. more than likely you have some kind of crash /
conflict in your code which is being tolerated in Debug mode.
I would be willing to bet that you won't get a Release build to run
either in your projects current state.
It may be worth testing that and getting the crash log to see where
exactly the problem is occurring..
I have had this problem when I have some threading issues in a multi-
threaded app before where I had some race condition that was not
happening with Debug builds, but was happening with Release builds,
and also apparently with Shark.
On Mar 13, 2009, at 4:03 AM, Alejandro Aragon wrote:
Hello everyone,
I write code in C++. I was able to import successfully my autotools
project as an external build system project. After that I added an
executable and it works just fine when I click on Build and Go.
Then, I try to use Shark so I go to Run -> Start with Performance
Tool -> Shark. This opens Shark and everything seems just fine.
However, when I run the executable, Shark stops taking samples
immediately, and no information about the program is obtained.
Does anyone know why this is happening? Thanks for your comments.
aa
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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:
This email sent to email@hidden