---
title: "os_signpost(_:dso:log:name:signpostID:)"
framework: os
role: symbol
role_heading: Function
path: "os/os_signpost(_:dso:log:name:signpostid:)-2oz8u"
---

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

## Declaration

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

## Parameters

- `type`: The type of signpost to create.
- `log`: A log object to write the signpost to.
- `name`: The name of the signpost.
- `signpostID`: A signpost identifier you use to disambiguate between signposts with the same name.

## See Also

### Measure Events

- [os_signpost(_:dso:log:name:signpostID:_:_:)](os/os_signpost(_:dso:log:name:signpostid:_:_:)-2om9b.md)
- [OSSignpostType](os/ossignposttype.md)
- [os_signpost(_:dso:log:name:signpostID:)](os/os_signpost(_:dso:log:name:signpostid:)-12m3v.md)
- [os_signpost(_:dso:log:name:signpostID:_:_:)](os/os_signpost(_:dso:log:name:signpostid:_:_:)-nez5.md)
- [OSSignpostAnimationBegin](os/ossignpostanimationbegin.md)
- [AnimationFormatString](os/animationformatstring.md)
- [os_signpost_id_t](os/os_signpost_id_t.md)
