Structure

OSSignpostID

An identifier you use to distinguish signposts that have the same name and that log to the same OSLog.

Declaration

struct OSSignpostID

Topics

Creating Signpost Identifiers

init(log: OSLog)

Creates a signpost identifier that’s unique among signposts logging to the specified log.

init(log: OSLog, object: AnyObject)

Creates a signpost identifier that’s unique among signposts logging to the specified log and among signposts using the supplied object.

Using Built-in Signpost Identifiers

static let exclusive: OSSignpostID

A signpost identifier that indicates no overlap among different signpost time intervals.

static let invalid: OSSignpostID

A signpost identifier that indicates an error.

static let null: OSSignpostID

A signpost identifier that represents a disabled signpost.

Inspecting Signpost Identifiers

let rawValue: os_signpost_id_t

An integer value used by a signpost identifier to uniquely identify a signpost.

Comparing Signpost Identifiers

static func == (OSSignpostID, OSSignpostID) -> Bool

Returns a Boolean value indicating whether two values are equal.

static func != (OSSignpostID, OSSignpostID) -> Bool

Returns a Boolean value indicating whether two values are not equal.

static func < (OSSignpostID, OSSignpostID) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.

static func <= (OSSignpostID, OSSignpostID) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func > (OSSignpostID, OSSignpostID) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (OSSignpostID, OSSignpostID) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Creating Signpost Identifier Ranges

static func ... (OSSignpostID) -> PartialRangeFrom<OSSignpostID>

Returns a partial range extending upward from a lower bound.

static func ... (OSSignpostID) -> PartialRangeThrough<OSSignpostID>

Returns a partial range up to, and including, its upper bound.

static func ... (OSSignpostID, OSSignpostID) -> ClosedRange<OSSignpostID>

Returns a closed range that contains both of its bounds.

static func ..< (OSSignpostID) -> PartialRangeUpTo<OSSignpostID>

Returns a partial range up to, but not including, its upper bound.

static func ..< (OSSignpostID, OSSignpostID) -> Range<OSSignpostID>

Returns a half-open range that contains its lower bound but not its upper bound.

Initializers

Relationships

Conforms To

See Also

Debugging CPU Performance

func os_signpost(OSSignpostType, dso: UnsafeRawPointer, log: OSLog, name: StaticString, signpostID: OSSignpostID)

Marks a point of interest in your code as a time interval or as an event for debugging performance in Instruments.

func os_signpost(OSSignpostType, dso: UnsafeRawPointer, log: OSLog, name: StaticString, signpostID: OSSignpostID, StaticString, CVarArg)

Marks a point of interest in your code as a time interval or as an event for debugging performance in Instruments, and includes a detailed message.

struct OSSignpostType

The values that determine the role of a signpost.