9.8 Performance and Debugging Tools

The developer tools that ship with Panther include an impressive array of debugging and tuning tools. Extensive documention, including examples and demonstrations of using these tools is available at http://developer.apple.com/documentation/Performance/Conceptual/Performance/index.html. The following short list is just to give you an idea of what is available:


The GNU debugger.


Analyzes memory usage.


Analyzes both memory allocation and deallocation.


Analyzes memory usage.


Lists the addresses and sizes of unreferenced malloc buffers.


Lists the malloc allocation history of a given process.


Lists virtual memory statistics.


Displays a virtual memory map in a process, including the attributes of memory regions such as starting addresses, sizes, and permissions.

OpenGL Profiler

Profiles OpenGL-based applications.


A debugging tool related to the Quartz graphics system.


Performs a statistical analysis of where an application spends its time by providing information such as how often allocation routines, system calls, or other functions are called.

Thread Viewer

Profiles individual threads in multithreaded applications.


Profiles execution of programs by reporting information such as execution times and the number of calls for individual functions.


The otool command-line utility is used to display information associated with object files or libraries. Earlier, we used it with the - L option, which displays the names and version numbers of the shared libraries used by the given object file. For more details see the otool manpage .

Mac OS X Panther for Unix Geeks
Mac OS X Panther for Unix Geeks
ISBN: 0596006071
EAN: 2147483647
Year: 2003
Pages: 212

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net