Uploaded June 2026 | Updated September 2026, 1 week ago
Explore the enhanced FoundationModels instrument in Xcode to inspect behavior and optimize the performance of agentic flows. Learn how to inspect prompts, analyze latency, and trace control flow in advanced use cases that leverage multiple LanguageModelSessions and profiles.
Explore related documentation, sample code, and more:
Analyzing the runtime performance of your Foundation Models app: developer.apple.com/documentation/FoundationModels/analyzing-the-runtime-performance-of-your-foundation-models-app
Build AI-powered scripts with the fm CLI and Python SDK: developer.apple.com/videos/play/wwdc2026/334
Bring an LLM provider to the Foundation Models framework: developer.apple.com/videos/play/wwdc2026/339
Build with the new Apple Foundation Model on Private Cloud Compute: developer.apple.com/videos/play/wwdc2026/319
What’s new in the Foundation Models framework: developer.apple.com/videos/play/wwdc2026/241
Build agentic app experiences with the Foundation Models framework: developer.apple.com/videos/play/wwdc2026/242
00:00 - Introduction
01:57 - LLM app development mindset
03:59 - Inspect and diagnose an agentic experience
05:02 - Recording a trace with Instruments
06:04 - Navigating the Instruments UI
12:07 - Performance metrics
13:04 - Next steps
More Apple Developer resources:
Video sessions: apple.co/VideoSessions
Documentation: apple.co/DeveloperDocs
Forums: apple.co/DeveloperForums
App: apple.co/DeveloperApp
Explore the enhanced FoundationModels instrument in Xcode to inspect behavior and optimize the performance of agentic flows. Learn how to inspect prompts, analyze latency, and trace control flow in advanced use cases that leverage multiple LanguageModelSessions and profiles.
Explore related documentation, sample code, and more:
Analyzing the runtime performance of your Foundation Models app: developer.apple.com/documentation/FoundationModels/analyzing-the-runtime-performance-of-your-foundation-models-app
Build AI-powered scripts with the fm CLI and Python SDK: developer.apple.com/videos/play/wwdc2026/334
Bring an LLM provider to the Foundation Models framework: developer.apple.com/videos/play/wwdc2026/339
Build with the new Apple Foundation Model on Private Cloud Compute: developer.apple.com/videos/play/wwdc2026/319
What’s new in the Foundation Models framework: developer.apple.com/videos/play/wwdc2026/241
Build agentic app experiences with the Foundation Models framework: developer.apple.com/videos/play/wwdc2026/242
00:00 - Introduction
01:57 - LLM app development mindset
03:59 - Inspect and diagnose an agentic experience
05:02 - Recording a trace with Instruments
06:04 - Navigating the Instruments UI
12:07 - Performance metrics
13:04 - Next steps
More Apple Developer resources:
Video sessions: apple.co/VideoSessions
Documentation: apple.co/DeveloperDocs
Forums: apple.co/DeveloperForums
App: apple.co/DeveloperApp










