---
title: os_trace_info_enabled()
framework: os
role: symbol
role_heading: Function
platforms: [iOS 10.0+, iPadOS 10.0+, Mac Catalyst 13.1+, macOS 10.12+, tvOS 10.0+, visionOS 1.0+, watchOS 3.0+]
path: os/os_trace_info_enabled()
---

# os_trace_info_enabled()

Returns whether info level trace information is enabled.

## Declaration

```swift
func os_trace_info_enabled() -> Bool
```

## Discussion

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

## See Also

### Deprecated Functions

- [os_trace_debug_enabled()](os/os_trace_debug_enabled().md)
- [os_trace_type_enabled(_:)](os/os_trace_type_enabled(_:).md)
