Function

os_trace_type_enabled

Returns whether the specified info level trace information is enabled.

Declaration

bool os_trace_type_enabled(uint8_t type);

Parameters

type

The type of trace to check. Possible values are OS_TRACE_TYPE_DEBUG and OS_TRACE_TYPE_INFO.

Discussion

Generally, trace points should not involve expensive operations, however some circumstances warrant it. Use this function to do expensive work only when a given level of trace messages are enabled.

See Also

Generating Trace Messages

os_trace_debug_enabled

Returns whether debug level trace information is enabled.

Deprecated
os_trace_info_enabled

Returns whether info level trace information is enabled.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software