Function

os_signpost(_:dso:log:name:signpostID:_:_:)

Logs 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.

Declaration

func os_signpost(_ type: OSSignpostType, dso: UnsafeRawPointer = #dsohandle, log: OSLog, name: StaticString, signpostID: OSSignpostID = .exclusive, _ format: StaticString, _ arguments: CVarArg...)

Parameters

type

The type of signpost to log.

log

A log object to log the signpost to.

name

The name of the signpost.

signpostID

A signpost identifier you use to disambiguate between signposts with the same name.

format

A constant string or format string that produces a human-readable log message.

args

If format is a constant string, do not specify arguments.

If format is a format string, pass the expected number of arguments in the order that they appear in the string.

See Also

Logging Signpost Events

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

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

struct OSSignpostType

Options for different kinds of signposts.

struct OSSignpostID

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