---
title: "init(subsystem:category:name:)"
framework: xctest
role: symbol
role_heading: Initializer
path: "xctest/xctossignpostmetric/init(subsystem:category:name:)"
---

# init(subsystem:category:name:)

Creates a metric to record a specific signpost.

## Declaration

```swift
init(subsystem: String, category: String, name: String)
```

## Parameters

- `subsystem`: The doc://com.apple.documentation/documentation/os/OSLog subsystem that logs the signpost events.
- `category`: The log category for the logged signpost events.
- `name`: The name of the signpost.

## Discussion

Discussion Create an XCTOSSignpostMetric that records the time that elapses between the beginning and end of the named signpost in a particular log subsystem and category.
