View in English

  • Apple Developer
    • 시작하기

    시작하기 탐색

    • 개요
    • 알아보기
    • Apple Developer Program

    알림 받기

    • 최신 뉴스
    • Hello Developer
    • 플랫폼

    플랫폼 탐색

    • Apple 플랫폼
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    피처링

    • 디자인
    • 배포
    • 게임
    • 액세서리
    • 웹
    • 홈
    • CarPlay
    • 기술

    기술 탐색

    • 개요
    • Xcode
    • Swift
    • SwiftUI

    피처링

    • 손쉬운 사용
    • 앱 인텐트
    • Apple Intelligence
    • 게임
    • 머신 러닝 및 AI
    • 보안
    • Xcode Cloud
    • 커뮤니티

    커뮤니티 탐색

    • 개요
    • Apple과의 만남 이벤트
    • 커뮤니티 주도 이벤트
    • 개발자 포럼
    • 오픈 소스

    피처링

    • WWDC
    • Swift Student Challenge
    • 개발자 이야기
    • App Store 어워드
    • Apple 디자인 어워드
    • 문서

    문서 탐색

    • 문서 라이브러리
    • 기술 개요
    • 샘플 코드
    • 휴먼 인터페이스 가이드라인
    • 비디오

    릴리즈 노트

    • 피처링 업데이트
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • 다운로드

    다운로드 탐색

    • 모든 다운로드
    • 운영 체제
    • 애플리케이션
    • 디자인 리소스

    피처링

    • Xcode
    • TestFlight
    • 서체
    • SF Symbols
    • Icon Composer
    • 지원

    지원 탐색

    • 개요
    • 도움말
    • 개발자 포럼
    • 피드백 지원
    • 문의하기

    피처링

    • 계정 도움말
    • 앱 심사 지침
    • App Store Connect 도움말
    • 새로 추가될 요구 사항
    • 계약 및 지침
    • 시스템 상태
  • 빠른 링크

    • 이벤트
    • 뉴스
    • 포럼
    • 샘플 코드
    • 비디오
 

비디오

메뉴 열기 메뉴 닫기
  • 컬렉션
  • 전체 비디오
  • 소개

더 많은 비디오

  • 소개
  • 요약
  • 코드
  • 새로운 MetricKit 만나 보기

    그 어느 때보다 더 빠르게 성능 문제를 찾고 수정하세요. MetricKit이 어떻게 필수적인 성능 지표와 실행 가능한 진단 정보를 제공하여 앱의 개선 기회를 정확히 파악할 수 있도록 지원하는지 살펴보세요. StateReporting 프레임워크를 사용하여 앱 상태별로 앱의 지표와 진단 정보를 결합해 분석하는 방법도 다루며, 앱 경험 최적화를 알아볼 수 있도록 종합적인 인사이트를 제공합니다.

    챕터

    • 0:01 - Introduction
    • 4:07 - Metrics
    • 7:13 - Diagnostics
    • 10:03 - Context

    리소스

    • Getting started with StateReporting
    • Analyzing app performance with MetricKit
    • Monitoring app performance with MetricKit
    • Track performance by app state using MetricKit
    • MetricKit
      • HD 비디오
      • SD 비디오

    관련 비디오

    WWDC26

    • 프로파일링, 수정 및 확인: Instruments로 앱 반응성 향상하기
    • Metal 게임의 성능 문제를 찾고 수정하기
  • 비디오 검색…
    • 4:59 - Receive metrics from MetricKit

      // Receive metrics from MetricKit
      
      import MetricKit
      
      let manager = MetricManager()
      
      for await report in manager.metricReports {
          processReport(report)
      }
    • 5:25 - Send your metrics to the server

      // Send your metrics to the server
      
      import MetricKit
      
      for await report in manager.metricReports {
          let jsonData = try JSONEncoder().encode(report)
          sendToServer(jsonData)
      }
    • 5:44 - Access your performance metrics

      // Access your performance metrics
      
      import MetricKit
      
      for await report in manager.metricReports {
          let intervalEntries = report.intervalEntries
          let fullDayEntry = intervalEntries.fullDayEntry
          
          for entry in intervalEntries {
              let memoryMetrics = entry.values.filter { $0.metricGroup == .memory }
              
              for metric in memoryMetrics {
                  switch metric {
                  case .peakMemory(let peak):
                      processPeakMemory(peak)
                  default: break
                  }
              }
          }
      }
    • 8:59 - Receive diagnostics

      // Receive diagnostics
      
      import MetricKit
      
      let manager = MetricManager()
      
      for await report in manager.diagnosticReports {
          processReport(report)
      }
    • 9:14 - Send your diagnostic data to the server

      // Send your diagnostic data to the server
      
      import MetricKit
      
      for await report in manager.diagnosticReports {
          let jsonData = try JSONEncoder().encode(report)
          sendToServer(jsonData)
      }
    • 9:39 - Access your diagnostic data

      // Access your diagnostic data
      
      import MetricKit
      
      for await report in manager.diagnosticReports {
          switch report.result {
          case .crash(let crash):
              let backtrace = crash.callStackTree
              let reason = crash.terminationReason
              let category = crash.terminationCategory
              processCrash(backtrace: backtrace, reason: reason, category: category)
          case .hang(let hang):
              processHangDiagnostic(hang)
          default: break
          }
      }
    • 13:57 - Receive MetricKit data with states

      // Receive MetricKit data with states
      
      import MetricKit
      import StateReporting
      
      let domain = StateReportingDomain("com.metrickitsample.tabs")
      let manager = MetricManager(enabledStateReportingDomains: [domain])
      
      
      // Report transitions throughout the app
      
      let reporter = StateReporter.reporter(for: domain.rawValue)
      reporter.reportTransition(to: "Reports")
    • 14:21 - Define custom structured types

      // Define custom structured types
      
      import StateReporting
      
      @ReportableMetadata
      struct ViewConfiguration {
          let listSize: String
          let isSorted: Bool
      }
      
      let reporter = StateReporter.reporter(
          for: domain.rawValue,
          stableMetadata: ViewConfiguration.self
      )
      
      reporter.reportTransition(
          to: "Reports",
          stableMetadata: ViewConfiguration(listSize: "large", isSorted: false)
      )
    • 15:29 - Send encoded metric reports to the server

      // Send encoded metric reports to the server
      
      import MetricKit
      
      for await report in manager.metricReports {
          let encoder = JSONEncoder()
          
          let formatKey = MetricReport.encodingFormatKey
          encoder.userInfo[formatKey] = MetricReport.EncodingFormat.byStateReportingDomain
          
          let jsonData = try encoder.encode(report)
          sendToServer(jsonData)
      }
    • 0:01 - Introduction
    • MetricKit is a framework that provides metrics and diagnostics for monitoring real-world app performance. In iOS 27, the framework has been rebuilt from the ground up with a new Swift-first API and new features including Metal frame rate metrics, memory exception diagnostics, and granular data with state reporting.

    • 4:07 - Metrics
    • MetricKit delivers daily reports containing performance metrics — including launch time, hangs, CPU, memory, organized into interval entries and metric groups. Metrics can be retrieved as Codable reports for server-side aggregation or inspected directly by filtering for specific groups and values.

    • 7:13 - Diagnostics
    • When an app encounters a crash, hang, or other failure, MetricKit captures and immediately delivers a diagnostic report containing a symbolicated backtrace and metadata such as exception type and termination reason. iOS 27 adds memory exception diagnostics and a new termination category field on crash diagnostics.

    • 10:03 - Context
    • The State Reporting framework lets apps report their active configuration or user flow as named domains and states, which then allows MetricKit to aggregate data separately for each state rather than blending them. Custom structured metadata can be attached to states using the @ReportableMetadata macro, and per-state metrics are surfaced as StateEntry values in the metric report.

Developer Footer

  • 비디오
  • WWDC26
  • 새로운 MetricKit 만나 보기
  • 메뉴 열기 메뉴 닫기
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    메뉴 열기 메뉴 닫기
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    메뉴 열기 메뉴 닫기
    • 손쉬운 사용
    • 액세서리
    • Apple Intelligence
    • 앱 확장 프로그램
    • App Store
    • 오디오 및 비디오(영문)
    • 증강 현실
    • 디자인
    • 배포
    • 교육
    • 서체(영문)
    • 게임
    • 건강 및 피트니스
    • 앱 내 구입
    • 현지화
    • 지도 및 위치
    • 머신 러닝 및 AI
    • 오픈 소스(영문)
    • 보안
    • Safari 및 웹(영문)
    메뉴 열기 메뉴 닫기
    • 문서(영문)
    • 튜토리얼
    • 다운로드
    • 포럼(영문)
    • 비디오
    메뉴 열기 메뉴 닫기
    • 지원 문서
    • 문의하기
    • 버그 보고
    • 시스템 상태(영문)
    메뉴 열기 메뉴 닫기
    • Apple Developer
    • App Store Connect
    • 인증서, 식별자 및 프로파일(영문)
    • 피드백 지원
    메뉴 열기 메뉴 닫기
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(영문)
    • Mini Apps Partner Program
    • News Partner Program(영문)
    • Video Partner Program(영문)
    • Security Bounty Program(영문)
    • Security Research Device Program(영문)
    메뉴 열기 메뉴 닫기
    • Apple과의 만남
    • Apple Developer Center
    • App Store 어워드(영문)
    • Apple 디자인 어워드
    • Apple Developer Academy(영문)
    • WWDC
    최신 뉴스 읽기.
    Apple Developer 앱 받기.
    Copyright © 2026 Apple Inc. 모든 권리 보유.
    약관 개인정보 처리방침 계약 및 지침