コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Firebase Performance Monitoring
plat_ios
plat_android
plat_web
plat_flutter
アプリのパフォーマンス上の問題を分析します。
Firebase Performance Monitoring は、Apple アプリ、Android アプリ、ウェブアプリのパフォーマンス特性を把握するのに役立つサービスです。
Performance Monitoring SDK を使用してアプリからパフォーマンス データを収集し、Firebase コンソールでデータのレビューと分析を行います。Performance Monitoring により、アプリのパフォーマンスをどこで改善できるかがリアルタイムでわかり、その情報を使用してパフォーマンスの問題を解決できます。
準備ができたらプラットフォームを選択します。
iOS+
Android
ウェブ
Flutter
主な機能
アプリの起動時間や HTTP ネットワーク リクエストなどを自動的に測定する |
Performance Monitoring SDK をアプリに統合すると、アプリのパフォーマンスの重要な指標をモニタリングするためのコードを作成する必要がなくなります。 ネイティブ アプリの場合、起動時間、画面ごとのレンダリング データ、フォアグラウンドでのアクティビティ、バックグラウンドでのアクティビティといった指標が SDK でロギングされます。ウェブアプリの場合、First Contentful Paint や、ユーザーがアプリと対話できるかどうかなどについて、SDK によってロギングされます。 |
アプリのパフォーマンスの改善が見込める状況を見抜く |
ユーザーの期待に応えられていない理由が正確にわからないと、アプリのパフォーマンスを最適化するのは困難です。これに対応できるように、Performance Monitoring ではパフォーマンス指標を国、デバイス、アプリのバージョン、OS レベルなどの属性別に分析して確認できます。 |
アプリのモニタリングをカスタマイズする |
カスタムコード トレースを設定して、新しい画面を読み込む、または新しいインタラクティブ機能を表示する場合など、特定の状況におけるアプリのパフォーマンスをキャプチャできます。また、カスタムコード トレースにカスタム指標を作成して、トレース時に定義したイベント(キャッシュ ヒットなど)をカウントすることもできます。 |
アプリ パフォーマンスの大幅な変化を特定する |
アプリの目標達成には、アプリの主要なパフォーマンスの問題(ネットワークの停止など)を特定して解決することが不可欠です。Performance Monitoring を使用すると、アプリの最も重要な部分に関してアラートを設定してカスタマイズできるため、パフォーマンスの問題がユーザーに影響する前に問題を把握して対処できます。 |
仕組み
Performance Monitoring SDK を追加すると、Firebase はアプリ内のいくつかの一般的なプロセスに関するデータの収集を自動的に開始します。次に例を示します。
Performance Monitoring は、トレースを使用して、これらのプロセスに関するデータを収集します。トレースは、アプリ内の 2 つの時点の間でキャプチャされたデータを含むレポートです。
各トレースで収集されたパフォーマンス データは指標と呼ばれ、トレースの種類によって異なります。たとえば、アプリのインスタンスがネットワーク リクエストを発行すると、トレースでは、レスポンス時間やペイロード サイズなど、ネットワーク リクエストのモニタリングにとって重要な指標が収集されます。
アプリのインスタンスがモニタリング対象プロセスを実行するたびに、関連するトレースもアプリ インスタンスの属性データを自動的に収集します。たとえば、Android アプリがネットワーク リクエストを発行する場合、トレースはその特定のアプリ インスタンスのデバイス、アプリのバージョンなどの属性を収集します。これらの属性を使用して、パフォーマンス データをフィルタリングし、特定のユーザー セグメントで問題が発生しているかどうかを確認できます。
Performance Monitoring の事前構成済みのトレースを使用してアプリのモニタリングを開始できますが、特定のタスクまたはフローのパフォーマンスを確認するには、アプリでコードの独自のカスタム トレースのインストゥルメント化を試みてください。
実装パス
|
アプリに Performance Monitoring SDK を追加する
|
アプリで使用する他の Firebase プロダクトとともに Performance Monitoring SDK をアプリに追加できます。
Apple プラットフォーム |
Android |
ウェブ |
Flutter
|
|
(省略可) カスタムコード トレースとカスタム指標をアプリに設定する |
Performance Monitoring SDK を使用して、アプリのパフォーマンスを特定の側面から測定するカスタムコード トレースとカスタム指標を設定できます。 |
|
コンソールでパフォーマンス データをリアルタイムでモニタリングする
|
Firebase コンソールでユーザーのパフォーマンス データをモニタリングし、アプリのパフォーマンスを改善する余地がある特定の状況を検出できます。また、そのデータをアプリのバージョン、国、デバイス、OS などの属性で分析することもできます。 |
ユーザーデータ
Performance Monitoring が個人を特定できる情報(名前、メールアドレス、電話番号など)を永続的に保存することはありません。HTTP ネットワーク リクエストをモニタリングするにあたり、Performance Monitoring は URL(URL パラメータは含まない)をもとに集約された匿名の URL パターンを構築します。このパターンが最終的に保存され、Firebase コンソールに表示されます。
詳細については、Performance Monitoring によって収集される情報の例をご覧ください。
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-04 UTC。
[null,null,["最終更新日 2025-08-04 UTC。"],[],[],null,["Firebase Performance Monitoring \nplat_ios plat_android plat_web plat_flutter \nGain insight into your app's performance issues. \nFirebase Performance Monitoring is a service that helps you to gain insight into the performance characteristics of your Apple, Android, and web apps.\n\n\u003cbr /\u003e\n\nYou use the Performance Monitoring SDK to collect performance data from your app, then\nreview and analyze that data in the Firebase console. Performance Monitoring helps you\nto understand in real time where the performance of your app can be improved so\nthat you can use that information to fix performance issues.\n\n\u003cbr /\u003e\n\nReady to get started? Choose your platform:\n\n[iOS+](/docs/perf-mon/get-started-ios)\n[Android](/docs/perf-mon/get-started-android)\n[Web](/docs/perf-mon/get-started-web)\n[Flutter](/docs/perf-mon/flutter/get-started)\n\nKey capabilities\n\nHow does it work?\n\nWhen you add the Performance Monitoring SDK, Firebase *automatically* starts collecting\ndata for several common processes in your app, for example:\n\nPerformance Monitoring uses ***traces*** to collect data about these processes. A trace is\na report that contains data captured between two points in time in your app.\n\nThe collected performance data for each trace are called ***metrics*** and vary\ndepending on the type of trace. For example, when an instance of your app issues\na network request, the trace collects metrics that are important for network\nrequest monitoring, like response time and payload size.\n\nEach time an instance of your app runs a monitored process, the associated trace\nalso automatically collects ***attributes*** data for that app instance. For\nexample, if an Android app issues a network request, the trace collects the\ndevice, app version, and other attributes for that specific app instance. You\ncan use these attributes to filter your performance data and learn if specific\nuser segments are experiencing issues.\n\nThe out-of-the-box traces from Performance Monitoring get you started with monitoring your\napp, but to learn about the performance of specific tasks or flows, try out\n[instrumenting your own custom traces of code](/docs/perf-mon/custom-code-traces)\nin your app.\n\nImplementation path\n\nUser data\n\nPerformance Monitoring does not permanently store any personally identifiable\ninformation (such as names, email addresses, or phone numbers). While monitoring\nHTTP network requests, Performance Monitoring uses URLs (not including URL parameters)\nto build aggregated and anonymous URL patterns that are eventually persisted\nand shown in the Firebase console.\n\nFor more details, refer to the\n[Examples of information collected by\nPerformance Monitoring](/support/privacy#performance-monitoring-collected-info).\n\nNext steps\n\n- To get started using Performance Monitoring in your app, visit:\n\n - [Get Started with Performance Monitoring for Apple platforms](/docs/perf-mon/get-started-ios)\n - [Get Started with Performance Monitoring for Android](/docs/perf-mon/get-started-android)\n - [Get Started with Performance Monitoring for web](/docs/perf-mon/get-started-web)\n - [Get Started with Performance Monitoring on Flutter](/docs/perf-mon/flutter/get-started)\n- To learn about setting up alerts, see [Set up alerts for performance issues](https://firebase.google.com/docs/perf-mon/alerts)."]]