TechnologiesFoundation, System & Concurrency

os

iOSmacOStvOSwatchOSvisionOS

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.

  • St
    LoggeriOS 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.

  • En
    OSLogBoolFormatiOS 14.0+
    Constants that specify how a Boolean value is formatted when recorded in a log message.
  • En
    OSLogIntExtendedFormatiOS 15.0+
    Constants that specify the formatting of integer values interpolated into a log message.
  • En
    OSLogInt32ExtendedFormatiOS 14.0+
    Constants that specify the formatting of 32-bit integer values interpolated into a log message.
  • En
    OSLogPointerFormatiOS 14.0+
    Constants that specify how a pointer value is formatted when recorded in a log message.
  • En
    AnimationFormatStringiOS 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.

  • St
    OSSignposteriOS 15.0+
    An object that emits signposts to mark intervals and events for activity tracing and performance measurement.
  • St
    OSSignpostIDiOS 12.0+
    A value that identifies a signpost so its begin and end events can be correlated.
  • Cl
    OSSignpostIntervalStateiOS 15.0+
    A type that tracks the state of an interval. The state is used in runtime sanity checks.
  • En
    OSSignpostAnimationBeginiOS 14.0+
    A type that marks the beginning of an animation signpost interval.

Synchronization 1

Lightweight locking primitives for coordinating concurrent access.

  • St
    OSAllocatedUnfairLockFlagsiOS 18.0+
    `OSAllocatedUnfairLockFlags` provides flags to alter the behavior of the

Structures 7

  • St
    OSAllocatedUnfairLockiOS 16.0+
    An `OSAllocatedUnfairLock` is a wrapper around an `os_unfair_lock` that locks
  • St
    OSLogFloatFormattingiOS 14.0+
  • St
    OSLogIntegerFormattingiOS 14.0+
  • St
    OSLogInterpolationiOS 14.0+
    Represents a string interpolation passed to the log APIs.
  • St
    OSLogMessageiOS 14.0+
    Represents a message passed to the log APIs. This type should be created
  • St
    OSLogPrivacyiOS 14.0+
    Privacy options for specifying privacy level of the interpolated expressions
  • St
    OSLogStringAlignmentiOS 14.0+

Type Aliases 1

  • Ty
    SignpostMetadata

Extends 2

WorkGroupWorkGroupParallel
← Foundation, System & Concurrency