Re: [SOLVED] Shark + xcode + C++
Re: [SOLVED] Shark + xcode + C++
- Subject: Re: [SOLVED] Shark + xcode + C++
- From: Rick Altherr <email@hidden>
- Date: Fri, 13 Mar 2009 10:47:16 -0700
They should be remembered from run to run, but when you do "Start with
Performance Tool" in Xcode, they get reset.
Rick
On Mar 13, 2009, at 7:54 AM, Alejandro Aragon wrote:
Thanks Rick. I wanted to ask you also if there is a way to configure
Shark so I don't have to input these environmental variables every
time I run the program. I couldn't find any way to do it.
aa
On Mar 13, 2009, at 1:13 AM, Rick Altherr wrote:
Actually for Time Profile, system-wide versus single-process has a
negligible difference. The system-wide case has < 1% cpu overhead
and under 10MB of RAM overhead while sampling. The time for
analysis will be longer for system-wide, but that is simply due to
the amount of additional data collected.
In general, system-wide is good if you don't know where the problem
lies. It can show interactions with other processes that you might
otherwise miss.
Rick
On Mar 12, 2009, at 11:07 PM, Alejandro Aragon wrote:
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
--
Rick Altherr
Architecture and Performance Group
email@hidden
--
Rick Altherr
Architecture and Performance Group
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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