Skip to content

Instantly share code, notes, and snippets.

@proger
Last active March 4, 2024 08:01
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save proger/3607709 to your computer and use it in GitHub Desktop.
Save proger/3607709 to your computer and use it in GitHub Desktop.
iosdtrace.md

DTrace Sessions for iOS Development

DTrace is a comprehensive dynamic tracing framework created by Sun Microsystems for troubleshooting kernel and application problems on production systems in real time. Originally developed for Solaris, it has since been released to open source community in 2004 and has been ported to several other Unix systems.

Apple ported DTrace for OS X Leopard, including a GUI called Instruments and made it co-exist with the existing legacy stack of performance troubleshooting toolkits.

We are going to tame this beast to help us hunt down and eliminate all sorts of application and system-wide troubles when doing development of iOS and OS X apps.

the chat

$ open "$SEE_THE_FACEBOOK_GROUP_AT http://facebook.com/groups/iosdevorgua"

session one (September 5, SkyPoint)

  • DTrace introduction
  • DTrace use cases in software engineering industry

materials

  • DTrace script language crash course
  • OSX vs canonical (Solaris) implementations overview

materials

  • Establishing DTrace probes on a running process in OSX, Objective-C provider
  • Combining DTrace techniques with classic sequential ptrace debugging (GDB)
  • Establishing DTrace probes during process bootstrap stage

plan remainder

  • Tracing application code activity
  • Tracing library code activity
  • DTrace and the legacy OSX performance monitoring stack
  • Monitoring threaded activity
  • Correlating process activity to kernel services activity
  • Performance monitoring
  • DTrace for dynamic languages and runtimes

misc

refs

dtrace kitty watching you aggregate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment