-
Instruments로 에이전틱 앱 경험 디버깅 및 프로파일링하기
Xcode에서 향상된 FoundationModels 도구를 살펴보면서 동작을 검사하고 에이전틱 흐름의 성능을 최적화하세요. 여러 LanguageModelSession과 프로필을 활용하는 고급 사용 사례에서 프롬프트를 검사하고, 지연 시간을 분석하며, 제어 흐름을 추적하는 방법을 알아보세요.
챕터
- 0:00 - Introduction
- 1:57 - LLM app development mindset
- 3:59 - Inspect and diagnose an agentic experience
- 5:02 - Recording a trace with Instruments
- 6:04 - Navigating the Instruments UI
- 12:07 - Performance metrics
- 13:04 - Next steps
리소스
관련 비디오
WWDC26
-
비디오 검색…
-
-
- 0:00 - Introduction
Overview of how the Foundation Models Instruments template helps debug and profile agentic app experiences built with the Foundation Models framework, including Dynamic Instructions and tool call loops.
- 1:57 - LLM app development mindset
The three challenges unique to LLM app development: probabilistic output (non-deterministic responses that break standard unit testing), model-to-model communication (coordinating data flow across multiple models), and observability (knowing where things went wrong in a multi-model pipeline).
- 3:59 - Inspect and diagnose an agentic experience
Introduction to the craft companion demo app — a journaling app with an interactive brainstorming feature that uses two sets of Dynamic Instructions: one for idea generation and one for tutorial creation, both backed by the server model on Private Cloud Compute.
- 5:02 - Recording a trace with Instruments
How to start profiling with the Foundation Models template in Instruments — selecting the template, recording a session, and an important note about sensitive prompt data in trace files.
- 6:04 - Navigating the Instruments UI
A walkthrough of the Foundation Models instrument layout: tracks and lanes on the timeline (including the instructions lane and model inference lane with yellow/orange bars), the detail view, and the inspector — and how to use the tree view to inspect sessions, requests, inferences, and tool calls.
- 12:07 - Performance metrics
How to measure and optimize LLM experience performance using three key metrics: time-to-first-token (reduce by shortening prompts), tokens-per-second (benchmark across configurations), and total latency (reduce perceived wait with streaming).
- 13:04 - Next steps
Summary of what was covered, requirements to get started (Xcode 27 and latest OS), and pointers to related sessions on the Evaluations Framework and Agentic App Experiences.