---
title: os_signpost_emit_with_type
framework: os
role: symbol
role_heading: Macro
path: os/os_signpost_emit_with_type
---

# os_signpost_emit_with_type

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

## Declaration

```occ
#define os_signpost_emit_with_type(log, type, spid, name, ...)
```

## Parameters

- `log`: A log object to log the signpost to.
- `type`: The type of signpost to log.
- `spid`: A signpost identifier used to disambiguate between signposts with the same name.
- `name`: The name of the signpost.
- `…`: Optional. If specified, provide a format string, followed by the expected number of arguments in the order that they appear in the string.

## See Also

### Measure Events

- [Recording Performance Data](os/recording-performance-data.md)
- [Legacy Signpost Symbols](os/legacy-signpost-symbols.md)
- [OSSignpostType](os/ossignposttype.md)
- [os_signpost_interval_begin](os/os_signpost_interval_begin.md)
- [os_signpost_interval_end](os/os_signpost_interval_end.md)
- [os_signpost_event_emit](os/os_signpost_event_emit.md)
- [os_signpost_id_t](os/os_signpost_id_t.md)
