<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTOSSignpostMetric/init(subsystem:category:name:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTOSSignpostMetric(im)initWithSubsystem:category:name:"
  },
  "title" : "init(subsystem:category:name:)"
}
-->

# init(subsystem:category:name:)

Creates a metric to record a specific signpost.

```
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

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)