• 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: Controlling Shark from my application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling Shark from my application?


  • Subject: Re: Controlling Shark from my application?
  • From: Eric Eizenman <email@hidden>
  • Date: Thu, 22 Mar 2007 14:29:38 -0700

The PerfOptimization-dev mailing list is more suitable for this kind of question.

On Mar 22, 2007, at 1:18 PM, Jim Correia wrote:

What is the best way to start/stop a perf session from within my application (for the cases when I want to get profile data for an isolated piece of code)?

Follow the 'Towers of Hanoi' example in the Shark manual, p 83.

I'm using Xcode 2.4.1, and installed the CHUD tools that were part of that package. CHUD.framework is a private framework with no headers. The documentation mentions chudStartRemotePerfMonitor()/ chudStopRemotePerfMonitor(), but the lack of headers is a problem :-).

I can find the headers here:
/System/Library/PrivateFrameworks/CHUD.framework/Versions/A/ Frameworks/CHUDCore.framework/Versions/A/Headers/


It looks like the other possibility is to just fork/exec the chudRemoteCtrl tool. Has anyone had success with doing so? Since this is only for profiling, that doesn't strike me as too offensive...

I never tried that one.

Jim
_______________________________________________
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

------------------------------------------------------------------ Eric Eizenman BIAS Inc., Audio Software Development ------------------------------------------------------------------

_______________________________________________
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


References: 
 >Controlling Shark from my application? (From: Jim Correia <email@hidden>)

  • Prev by Date: Controlling Shark from my application?
  • Next by Date: Re: Controlling Shark from my application?
  • Previous by thread: Controlling Shark from my application?
  • Next by thread: Re: Controlling Shark from my application?
  • Index(es):
    • Date
    • Thread