---
title: pid
framework: metrickit
role: symbol
role_heading: Instance Property
path: metrickit/diagnosticreport/environment-swift.struct/pid
---

# pid

The process ID (PID) of the process.

## Declaration

```swift
let pid: pid_t?
```

## Mentioned in

Analyzing app performance with MetricKit
