<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTOSSignpostMetric"
  },
  "title" : "XCTOSSignpostMetric"
}
-->

# XCTOSSignpostMetric

A metric to record the time that a performance test spends executing a signposted region of code.

```
class XCTOSSignpostMetric
```

## Overview

This metric captures the time that elapses between the <doc://com.apple.documentation/documentation/os/OSSignpostType/begin> and <doc://com.apple.documentation/documentation/os/OSSignpostType/end> events for a specific named <doc://com.apple.documentation/documentation/os/os_signpost(_:dso:log:name:signpostID:)-2oz8u> region. It doesn’t record any results when there isn’t a matching pair of `begin` and `end` events.

## Topics

### Measuring Specific Signposts

[`init(subsystem:category:name:)`](/documentation/XCTest/XCTOSSignpostMetric/init(subsystem:category:name:))

Creates a metric to record a specific signpost.

### Measuring Navigation Transitions

[`customNavigationTransitionMetric`](/documentation/XCTest/XCTOSSignpostMetric/customNavigationTransitionMetric)

A metric that records the duration of custom navigation transitions between views.

[`navigationTransitionMetric`](/documentation/XCTest/XCTOSSignpostMetric/navigationTransitionMetric)

A metric that records the duration of navigation transitions between views.

### Measuring Scrolling Properties

[`scrollingAndDecelerationMetric`](/documentation/XCTest/XCTOSSignpostMetric/scrollingAndDecelerationMetric)

A metric that records scroll-dragging and deceleration animations.

### Deprecated

[`applicationLaunch`](/documentation/XCTest/XCTOSSignpostMetric/applicationLaunch)

A metric that records the time that elapses during app launch.

[`scrollDecelerationMetric`](/documentation/XCTest/XCTOSSignpostMetric/scrollDecelerationMetric)

A metric that records scroll deceleration animations.

[`scrollDraggingMetric`](/documentation/XCTest/XCTOSSignpostMetric/scrollDraggingMetric)

A metric that records scroll-dragging animations.



---

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)