View in English

  • Apple Developer
    • 今すぐ始める

    「今すぐ始める」を詳しく見る

    • 概要
    • 学ぶ
    • Apple Developer Program

    最新情報

    • 最新ニュース
    • Hello Developer
    • プラットフォーム

    プラットフォームを詳しく見る

    • Appleプラットフォーム
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    特集

    • デザイン
    • 配信
    • ゲーム
    • アクセサリ
    • Web
    • Home
    • CarPlay
    • テクノロジー

    テクノロジーを詳しく見る

    • 概要
    • Xcode
    • Swift
    • SwiftUI

    特集

    • アクセシビリティ
    • App Intent
    • Apple Intelligence
    • ゲーム
    • 機械学習とAI
    • セキュリティ
    • Xcode Cloud
    • コミュニティ

    コミュニティを詳しく見る

    • 概要
    • 「Appleに相談」イベント
    • コミュニティによるイベント
    • デベロッパフォーラム
    • オープンソース

    特集

    • WWDC
    • Swift Student Challenge
    • デベロッパストーリー
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Center
    • ドキュメント

    ドキュメントを詳しく見る

    • ドキュメントライブラリ
    • テクノロジー概要
    • サンプルコード
    • ヒューマンインターフェイスガイドライン
    • ビデオ

    リリースノート

    • 注目のアップデート
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • ダウンロード

    ダウンロードを詳しく見る

    • すべてのダウンロード
    • オペレーティングシステム
    • アプリ
    • デザインリソース

    特集

    • Xcode
    • TestFlight
    • フォント
    • SF Symbols
    • Icon Composer
    • サポート

    サポートを詳しく見る

    • 概要
    • ヘルプガイド
    • デベロッパフォーラム
    • フィードバックアシスタント
    • お問い合わせ

    特集

    • アカウントヘルプ
    • App Reviewガイドライン
    • App Store Connectヘルプ
    • 近日導入予定の要件
    • 契約およびガイドライン
    • システムステータス
  • クイックリンク

    • イベント
    • ニュース
    • Forum
    • サンプルコード
    • ビデオ
 

ビデオ

メニューを開く メニューを閉じる
  • コレクション
  • すべてのビデオ
  • 利用方法

その他のビデオ

  • 概要
  • Summary
  • コード
  • プロファイリング、修正、検証:Instrumentsによるアプリの応答性の向上

    明確なワークフローで、アプリの応答性に関する問題を解消しましょう。Swift Concurrency Instrument、Time Profiler、System Traceは、ボトルネックの特定に役立ちます。このセッションでは、主要な関数を使って比較を行い、改善の成果測定や修正の確認を行う方法を説明します。また、上記の改善のサイクルの各イテレーションをさらに短縮し、よりスムーズなユーザー体験を短時間で提供できるようにする、Instrumentsのその他の機能強化についても紹介します。

    関連する章

    • 0:00 - Introduction
    • 1:12 - Diagnostic flow
    • 7:06 - Sampling data visualization
    • 16:01 - Execution contention
    • 20:29 - System blocking
    • 26:07 - Next steps

    リソース

    • Analyzing CPU profiles with call tree views
      • HDビデオ
      • SDビデオ

    関連ビデオ

    WWDC26

    • Xcode 27の新機能

    WWDC25

    • InstrumentsによるCPUのパフォーマンス最適化
    • Swiftの並行処理の活用

    WWDC23

    • Instrumentsによるハング分析

    WWDC22

    • Swiftのジェネリクスを活用する
  • このビデオを検索
    • 5:41 - Add signpost interval around Lasso Selection

      // Add signpost interval around Lasso Selection
      
      import os.signpost
      
      let signposter = OSSignposter(subsystem: “Demo App", category: .pointsOfInterest)
      var lassoIntervalState: OSSignpostIntervalState? = nil
      
      func lassoSelectionUpdated() {
          lassoIntervalState = signposter.beginInterval("Lasso Selection")
          // Update selection in canvas…
      }
      
      func lassoSelectionEnded() {
          // Finalize lasso selection...
          signposter.endInterval("Lasso Selection", lassoIntervalState!)
      }
    • 12:11 - Existentials

      // Existentials
      
      protocol Foo { }
      
      struct TypeA: Foo { }
      struct TypeB: Foo { }
      
      func bar(_ foo: any Foo) {
      
      }
    • 12:39 - Concrete Types

      // Concrete types
      
      protocol Foo { }
      
      struct TypeA: Foo { }
      struct TypeB: Foo { }
      
      func bar(_ a: TypeA) {
      
      }
      
      func bar(_ b: TypeB) {
      
      }
    • 12:46 - Concrete Types + Generics

      // Concrete types
      
      protocol Foo { }
      
      struct TypeA: Foo { }
      struct TypeB: Foo { }
      
      func bar(_ a: TypeA) {
      
      }
      
      func bar(_ b: TypeB) {
      
      }
      
      // Generics
      
      protocol Foo { }
      
      struct TypeA: Foo { }
      struct TypeB: Foo { }
      
      func bar<T: Foo>(_ generic: T) {
      
      }
    • 12:49 - Concrete Types + Generics + Enums

      // Concrete types
      
      protocol Foo { }
      
      struct TypeA: Foo { }
      struct TypeB: Foo { }
      
      func bar(_ a: TypeA) {
      
      }
      
      func bar(_ b: TypeB) {
      
      }
      
      // Generics
      
      protocol Foo { }
      
      struct TypeA: Foo { }
      struct TypeB: Foo { }
      
      func bar<T: Foo>(_ generic: T) {
      
      }
      
      // Enums
      
      enum Foo {
          case a(TypeA)
          case b(TypeB)
      }
      
      struct TypeA { }
      struct TypeB { }
      
      func bar(_ enum: Foo) {
      
      }
    • 18:24 - Thumbnail Rendering

      // Thumbnail rendering
      
      let drawingData = note.drawingData
      let canvasImages = note.decodeCanvas()
      thumbnail = await Task(name: "Render Thumbnail") {
          await renderThumbnail(drawingData: drawingData, canvasImages: canvasImages, size: CGSize(width: 300, height: 240))
      }.value
    • 18:29 - Thumbnail Rendering Off Main Actor

      // Thumbnail rendering off Main Actor
      
      let drawingData = note.drawingData
      let canvasImages = note.decodeCanvas()
      thumbnail = await Task(name: "Render Thumbnail") { @concurrent in
          await renderThumbnail(drawingData: drawingData, canvasImages: canvasImages, size: CGSize(width: 300, height: 240))
      }.value
    • 24:12 - File Saving

      // File saving
      
      let encoder = PropertyListEncoder()
      encoder.outputFormat = .binary
      guard let data = try? encoder.encode(snapshots) else { return }
      let id = signposter.beginInterval("Writing To File")
      try? data.write(to: fileURL, options: .atomic)
      signposter.endInterval("Writing To File", id)
    • 24:25 - File Saving off Main thread

      // File saving
      
      Task { @concurrent in
      	let encoder = PropertyListEncoder()
      	encoder.outputFormat = .binary
      	guard let data = try? encoder.encode(snapshots) else { return }
      	let id = signposter.beginInterval("Writing To File")
      	try? data.write(to: fileURL, options: .atomic)
      	signposter.endInterval("Writing To File", id)
      }
    • 0:00 - Introduction
    • Overview of how Instruments 27 helps developers understand and optimize app responsiveness across the software stack abstraction layers.

    • 1:12 - Diagnostic flow
    • Learn the four-step mental model — CPU saturation, sampling data visualization, execution contention, and system blocking — for systematically triaging hangs and frame drops.

    • 7:06 - Sampling data visualization
    • Explore how Instruments' Call Tree, Flame Graph, and the new Top Functions mode transform raw CPU samples into actionable views for identifying performance bottlenecks.

    • 16:01 - Execution contention
    • Discover how the Swift Executors instrument reveals when render-thumbnail tasks saturate the Main Actor, and how adding the @concurrent attribute moves work off the main thread to resolve UI hangs.

    • 20:29 - System blocking
    • Use System Trace and the new Inspector panel to diagnose low-CPU hangs caused by synchronous file I/O blocking the main thread, and learn to fix them by moving the work to a background Swift task.

    • 26:07 - Next steps
    • Key takeaways on matching the right Instruments template to each class of performance problem, plus links to related sessions on CPU optimization, Swift Concurrency, and hang analysis.

Developer Footer

  • ビデオ
  • WWDC26
  • プロファイリング、修正、検証:Instrumentsによるアプリの応答性の向上
  • メニューを開く メニューを閉じる
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    メニューを開く メニューを閉じる
    • アクセシビリティ
    • アクセサリ
    • Apple Intelligence
    • App Extension
    • App Store
    • オーディオとビデオ(英語)
    • 拡張現実
    • デザイン
    • 配信
    • 教育
    • フォント(英語)
    • ゲーム
    • ヘルスケアとフィットネス
    • アプリ内課金
    • ローカリゼーション
    • マップと位置情報
    • 機械学習とAI
    • オープンソース(英語)
    • セキュリティ
    • SafariとWeb(英語)
    メニューを開く メニューを閉じる
    • 英語ドキュメント(完全版)
    • 日本語ドキュメント(一部トピック)
    • チュートリアル
    • ダウンロード
    • フォーラム(英語)
    • ビデオ
    Open Menu Close Menu
    • サポートドキュメント
    • お問い合わせ
    • バグ報告
    • システム状況(英語)
    メニューを開く メニューを閉じる
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles(英語)
    • フィードバックアシスタント
    メニューを開く メニューを閉じる
    • 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 Research Device Program(英語)
    Open Menu Close Menu
    • Appleに相談
    • Apple Developer Center
    • App Store Awards(英語)
    • Apple Design Awards
    • Apple Developer Academy(英語)
    • WWDC
    最新ニュースを読む。
    Apple Developerアプリを入手する。
    Copyright © 2026 Apple Inc. All rights reserved.
    利用規約 プライバシーポリシー 契約とガイドライン