Swift.org Oct 6, 2025

Introducing Swift Profile Recorder: Identifying Performance Bottlenecks in Production

Article Summary

Apple just open-sourced the profiling tool they've used for years to debug Swift services at massive scale. No special privileges, no eBPF, no system dependencies required.

Swift Profile Recorder is an in-process sampling profiler that runs as a Swift Package, enabling performance profiling in sandboxed and restricted environments where traditional tools like eBPF or DTrace can't operate. Apple has battle-tested it across their latency-sensitive build infrastructure that powers OS development.

Key Takeaways

Critical Insight

Swift services can now profile production performance bottlenecks in restricted environments where traditional profiling tools can't run, using only a Swift Package and curl.

The article reveals exactly how Apple uses this tool in two distinct ways across their infrastructure, plus the specific constraints that forced them to build it.

Recent from Swift.org

Related Articles