• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] Shark + xcode + C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] Shark + xcode + C++


  • Subject: Re: [SOLVED] Shark + xcode + C++
  • From: Rick Altherr <email@hidden>
  • Date: Thu, 12 Mar 2009 23:13:37 -0700

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:
@gmail.com


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:
@apple.com


This email sent to 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

  • Follow-Ups:
    • Re: [SOLVED] Shark + xcode + C++
      • From: Alejandro Aragon <email@hidden>
References: 
 >Shark + xcode + C++ (From: Alejandro Aragon <email@hidden>)
 >Re: Shark + xcode + C++ (From: Stephen Northcott <email@hidden>)
 >[SOLVED] Shark + xcode + C++ (From: Alejandro Aragon <email@hidden>)

  • Prev by Date: [SOLVED] Shark + xcode + C++
  • Next by Date: Re: Strange directory problem
  • Previous by thread: [SOLVED] Shark + xcode + C++
  • Next by thread: Re: [SOLVED] Shark + xcode + C++
  • Index(es):
    • Date
    • Thread