As you develop and use dynamic libraries, you may want to know when certain events occur. For example, you want to know when the dynamic loader binds a particular undefined external symbol or how long it took for an application to launch.
This article identifies the environment variables you can set and the type of dynamic loader logging they activate.
Table 1 lists the environment variables that turn on logging by the dynamic loader.
Environment variable | Description |
---|---|
| Logs when images are loaded. |
| Logs when images are loaded as a result of a dlopen call. Includes a dynamic libraries’ dependent libraries. |
| Logs the invocation that causes the dynamic loader to return the address of a symbol. |
| Logs statistical information on an application’s launch process, such as how many images were loaded, when the application finishes launching. |
| Logs when the dynamic loader calls initializer and finalizer functions. |
| Logs when the dynamic loader maps a segment of a dynamic library to the current process’s address space. |
| Logs when the dynamic loader binds an undefined external symbol with its definition. |
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-26)