• 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: Tracing the stack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracing the stack


  • Subject: Re: Tracing the stack
  • From: Wade Tregaskis <email@hidden>
  • Date: Tue, 25 Mar 2008 16:45:58 -0700

Is there any way in Cocoa/objective C to record a trace of the stack at run-time without stopping the application in the debugger. I'm experiencing sporadic activity in my program which is proving to be _very_ difficult to track down.


If you mean programmatically, try 'man backtrace'. If you mean you'd like to record a trace of your program's execution, then you should investigate 'man gprof', and Saturn (part of the CHUD tools). Alternatively (or additionally), depending on your problem, dtrace may be very useful - see http://solaris.reys.net/english/2005/02/dtrace_pid_provider for an idea of how that would work.

Wade
_______________________________________________
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: 
 >Tracing the stack (From: Charlie Dickman <email@hidden>)
 >Re: Tracing the stack (From: Ladd Van Tol <email@hidden>)

  • Prev by Date: Re: Tracing the stack
  • Next by Date: Compiler constants
  • Previous by thread: Re: Tracing the stack
  • Next by thread: Re: Tracing the stack
  • Index(es):
    • Date
    • Thread