透過集合功能整理內容
你可以依據偏好儲存及分類內容。
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 會記錄啟動時間、依畫面轉譯資料,並
在前景或背景執行的活動。如果是網頁應用程式,SDK 記錄
例如初次顯示內容所需時間、使用者
應用程式等等 |
深入瞭解可能達到應用程式效能的情況
改善 |
想提升應用程式效能並不容易
使用者無法完全瞭解原因。這就是原因
Performance Monitoring可讓您查看依下列指標細分的成效指標:
「屬性」,例如國家/地區
裝置、應用程式版本和 OS 層級 |
自訂應用程式監控功能 |
您可以檢測
自訂程式碼追蹤記錄
瞭解應用程式在特定情況下的效能表現
載入新畫面或顯示新的互動功能。您也可以
針對這些自訂程式碼追蹤記錄建立自訂指標,以便計算事件數
您在這些追蹤記錄期間定義的值 (例如快取命中)。 |
找出應用程式效能的重大變化 |
找出並解決主要的應用程式效能問題,例如網路
服務中斷,對應用程式能否成功至關重要。Performance Monitoring
您必須設定並自訂快訊
您應用程式中最重要的部分,方便您查看及回覆
效能上的陷阱
對使用者的影響 |
運作原理
新增 Performance Monitoring SDK 後,Firebase 會自動開始收集
在應用程式中使用幾種常見程序的資料,例如:
Performance Monitoring 會使用追蹤記錄收集這些程序的相關資料。追蹤記錄為
此報表包含應用程式中兩點之間擷取的資料。
針對每筆追蹤記錄收集的效能資料稱為指標,會有所不同
視追蹤記錄類型而定舉例來說,當應用程式發生問題時
網路要求時,追蹤記錄會收集網路要求的重要指標
監控要求監控作業,例如回應時間和酬載大小
每當應用程式的執行個體執行受監控的程序時,相關追蹤記錄就會
系統也會自動收集該應用程式執行個體的屬性資料。適用對象
舉例來說,如果 Android 應用程式發出網路要求,追蹤記錄會收集
裝置、應用程式版本和其他屬性個人中心
可以利用這些屬性篩選成效資料
使用者區隔發生問題。
透過 Performance Monitoring 的立即可用的追蹤記錄,立即開始監控
如要瞭解特定工作或流程的效能
檢測自訂程式碼追蹤記錄
。
實作路徑
|
在應用程式中新增 Performance Monitoring SDK
|
您可以將 Performance Monitoring SDK 和任何其他應用程式新增至應用程式
您要在應用程式中使用的 Firebase 產品。
Apple 平台 |
Android |
網頁 |
Flutter
|
|
(選用)
檢測應用程式中的自訂程式碼追蹤記錄和自訂指標
|
您可以使用 Performance Monitoring SDK 檢測
以及自訂程式碼追蹤記錄
自訂指標
評估應用程式效能的特定層面。
|
|
在主控台中即時監控效能資料
|
在
Firebase 控制台,
方便您監控使用者成效資料,瞭解
遇到可提升應用程式效能的情況。你也可以
成效資料的細分依據
屬性,例如應用程式版本
國家/地區、裝置或作業系統
|
使用者資料
Performance Monitoring 不會永久儲存任何個人識別資訊
個人資訊 (例如姓名、電子郵件地址或電話號碼)。監控期間
HTTP 網路要求,Performance Monitoring 使用網址 (不含網址參數)
建立最終保存的匯總匿名網址模式
並顯示在 Firebase 控制台中
詳情請參閱
Google 收集的資訊類型
Performance Monitoring。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-24 (世界標準時間)。
[null,null,["上次更新時間:2025-07-24 (世界標準時間)。"],[],[],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)."]]