os_trace_type_enabled(_:)
Returns whether the specified info level trace information is enabled.
Declaration
func os_trace_type_enabled(_ type: UInt8) -> BoolParameters
- 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.