os provides low-level operating-system facilities for logging, performance measurement, and synchronization across iOS, macOS, tvOS, watchOS, and visionOS. Use Logger to emit messages through the unified logging system, with format types such as OSLogBoolFormat, OSLogIntExtendedFormat, and OSLogPointerFormat to control how interpolated values are recorded. With OSSignposter you mark signpost intervals for activity tracing, tracking each interval through an OSSignpostID and OSSignpostIntervalState. The framework also exposes lightweight locking primitives, including the flags described by OSAllocatedUnfairLockFlags, for coordinating concurrent access.
Unified Logging 1
Emit messages through the unified logging system for debugging and diagnostics.
- StLoggeriOS 14.0+An object for writing interpolated string messages to the unified logging system.
Log Message Formatting 5
Control how interpolated values are recorded in log messages.
- EnOSLogBoolFormatiOS 14.0+Constants that specify how a Boolean value is formatted when recorded in a log message.
- EnOSLogIntExtendedFormatiOS 15.0+Constants that specify the formatting of integer values interpolated into a log message.
- EnOSLogInt32ExtendedFormatiOS 14.0+Constants that specify the formatting of 32-bit integer values interpolated into a log message.
- EnOSLogPointerFormatiOS 14.0+Constants that specify how a pointer value is formatted when recorded in a log message.
- EnAnimationFormatStringiOS 14.0+A type that describes the format string used to record animation-related signpost data.
Signposts and Activity Tracing 4
Mark intervals and events to measure performance and trace activity.
- StOSSignposteriOS 15.0+An object that emits signposts to mark intervals and events for activity tracing and performance measurement.
- StOSSignpostIDiOS 12.0+A value that identifies a signpost so its begin and end events can be correlated.
- ClOSSignpostIntervalStateiOS 15.0+A type that tracks the state of an interval. The state is used in runtime sanity checks.
- EnOSSignpostAnimationBeginiOS 14.0+A type that marks the beginning of an animation signpost interval.
Synchronization 1
Lightweight locking primitives for coordinating concurrent access.
- StOSAllocatedUnfairLockFlagsiOS 18.0+`OSAllocatedUnfairLockFlags` provides flags to alter the behavior of the
Structures 7
- StOSAllocatedUnfairLockiOS 16.0+An `OSAllocatedUnfairLock` is a wrapper around an `os_unfair_lock` that locks
- StOSLogFloatFormattingiOS 14.0+
- StOSLogIntegerFormattingiOS 14.0+
- StOSLogInterpolationiOS 14.0+Represents a string interpolation passed to the log APIs.
- StOSLogMessageiOS 14.0+Represents a message passed to the log APIs. This type should be created
- StOSLogPrivacyiOS 14.0+Privacy options for specifying privacy level of the interpolated expressions
- StOSLogStringAlignmentiOS 14.0+
Type Aliases 1
- TySignpostMetadata