Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Firebase Performance Monitoring
plat_iosplat_androidplat_webplat_flutter
Mendapatkan laporan tentang masalah performa aplikasi.
Firebase Performance Monitoring adalah layanan yang membantu Anda mendapatkan insight tentang
karakteristik performa aplikasi Apple, Android, dan web Anda.
Anda menggunakan Performance Monitoring SDK untuk mengumpulkan data performa dari aplikasi, lalu
meninjau dan menganalisis data tersebut di Firebase console. Dengan Performance Monitoring, Anda dapat memahami secara real time di mana performa aplikasi dapat ditingkatkan sehingga Anda dapat menggunakan informasi tersebut untuk memperbaiki masalah performa.
Mengukur waktu pengaktifan aplikasi, permintaan jaringan HTTP, dan lainnya secara otomatis
Saat mengintegrasikan Performance Monitoring SDK ke dalam aplikasi, Anda tidak perlu menulis kode sebelum aplikasi otomatis mulai memantau beberapa aspek penting performa.
Untuk aplikasi native, SDK membuat log waktu pengaktifan aplikasi, data rendering menurut layar, dan
aktivitas saat berada di latar depan atau latar belakang. Untuk aplikasi web, SDK membuat log beberapa aspek seperti first contentful paint, kemampuan bagi pengguna untuk berinteraksi dengan aplikasi, dan lain-lain.
Mendapatkan laporan tentang potensi peningkatan performa aplikasi
Pengoptimalan performa aplikasi dapat menjadi pekerjaan berat jika Anda tidak tahu persis mengapa aplikasi itu tidak sesuai harapan pengguna. Dengan Performance Monitoring, Anda dapat melihat metrik performa yang dikelompokkan menurut beberapa atribut, seperti negara, perangkat, versi aplikasi, dan level OS.
Menyesuaikan pemantauan untuk aplikasi
Anda dapat memanfaatkan trace kode kustom untuk mencatat performa aplikasi Anda dalam situasi tertentu, contohnya saat Anda memuat layar baru atau menampilkan fitur interaktif baru. Selain itu, Anda dapat membuat metrik kustom pada trace kode kustom ini untuk menghitung peristiwa yang Anda tentukan (seperti saat cache ditemukan) selama trace tersebut.
Mengidentifikasi perubahan signifikan dalam performa aplikasi
Mengidentifikasi dan menyelesaikan masalah utama performa aplikasi, seperti gangguan jaringan, sangatlah penting bagi kesuksesan aplikasi Anda. Dengan Performance Monitoring, Anda dapat menyiapkan dan menyesuaikan pemberitahuan untuk bagian aplikasi yang paling penting sehingga Anda dapat melihat dan merespons masalah performa, sebelum hal tersebut memengaruhi pengguna aplikasi Anda.
Bagaimana cara kerjanya?
Saat Performance Monitoring SDK ditambahkan, Firebase otomatis mulai mengumpulkan data untuk beberapa proses umum di aplikasi Anda, misalnya:
Performance Monitoring menggunakan trace untuk mengumpulkan data tentang proses ini. Trace adalah laporan berisi data yang dicatat di antara dua titik waktu dalam aplikasi Anda.
Data performa yang dikumpulkan untuk setiap trace disebut metrik dan bervariasi bergantung pada jenis trace. Misalnya, saat instance aplikasi Anda mengeluarkan permintaan jaringan, trace mengumpulkan metrik yang penting untuk pemantauan permintaan jaringan, seperti waktu respons dan ukuran payload.
Setiap kali instance aplikasi Anda menjalankan proses yang dipantau, trace yang terkait juga otomatis mengumpulkan data atribut untuk instance aplikasi tersebut. Misalnya, jika aplikasi Android mengeluarkan permintaan jaringan, trace akan mengumpulkan informasi perangkat, versi aplikasi, dan atribut lainnya untuk instance aplikasi tertentu tersebut. Anda dapat menggunakan atribut ini untuk memfilter data performa dan mengetahui apakah segmen pengguna tertentu mengalami masalah atau tidak.
Trace siap pakai dari Performance Monitoring membantu Anda memulai pemantauan aplikasi. Namun, untuk mempelajari performa tugas atau alur tertentu, Anda dapat memanfaatkan trace kode kustom Anda sendiri di aplikasi.
Alur implementasi
Menambahkan Performance Monitoring SDK ke aplikasi
Anda dapat menambahkan Performance Monitoring SDK ke aplikasi, beserta produk Firebase lain yang ingin Anda gunakan pada aplikasi. Apple platforms |
Android |
Web |
Flutter
(Opsional) Memanfaatkan trace kode kustom dan metrik kustom di aplikasi Anda
Di
Firebase console,
Anda dapat memantau data performa dari pengguna untuk mempelajari
situasi tertentu saat performa aplikasi dapat ditingkatkan. Anda juga dapat mengelompokkan data performa berdasarkan atributnya, seperti versi aplikasi, negara, perangkat, atau OS.
Data pengguna
Performance Monitoring tidak menyimpan informasi identitas pribadi secara permanen (seperti nama, alamat email, atau nomor telepon). Selama memantau permintaan jaringan HTTP, Performance Monitoring menggunakan URL (tidak termasuk parameter URL) untuk membuat pola URL gabungan dan anonim yang pada akhirnya disimpan dan ditampilkan di Firebase console.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-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\n|-------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Automatically measure app startup time, HTTP network requests, and more | When you integrate the Performance Monitoring SDK into your app, you don't need to write any code before your app starts automatically monitoring several critical aspects of performance. For native apps, the SDK logs startup time, rendering data by screen, and activity while in the foreground or background. For web apps, the SDK logs aspects like first contentful paint, ability for users to interact with your app, and more. |\n| Gain insight into situations where app performance could be improved | Optimizing the performance of your app can be challenging when you don't know exactly why it is falling short of user expectations. That's why Performance Monitoring lets you see performance metrics broken down by [*attributes*](/docs/perf-mon/attributes), like country, device, app version, and OS level. |\n| Customize monitoring for your app | You can instrument [*custom code traces*](/docs/perf-mon/custom-code-traces) to capture your app's performance in specific situations, like when you load a new screen or display a new interactive feature. And, you can create *custom metrics* on these custom code traces to count events that you define (like cache hits) during those traces. |\n| Identify significant changes in app performance | Identifying and resolving major app performance issues, like network outages, is vital to the success of your app. Performance Monitoring lets you [set up and customize alerts](/docs/perf-mon/alerts) for the most critical parts of your app so you can see and respond to performance pitfalls -- before they affect your users. |\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\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| | - [App start up time for Apple and Android apps](/docs/perf-mon/app-start-foreground-background-traces) - [Screen rendering for Apple and Android apps](/docs/perf-mon/screen-traces) | - [Page loading for web apps](/docs/perf-mon/page-load-traces) - [Network requests for all types of apps](/docs/perf-mon/network-traces) |\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\n|---|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Add the Performance Monitoring SDK to your app | You can add the Performance Monitoring SDK to your app, along with any other Firebase products that you want to use in your app. [Apple platforms](/docs/perf-mon/get-started-ios) \\| [Android](/docs/perf-mon/get-started-android) \\| [Web](/docs/perf-mon/get-started-web) \\| [Flutter](/docs/perf-mon/flutter/get-started) |\n| | *(Optional)* Instrument custom code traces and custom metrics in your app | Using the Performance Monitoring SDK, you can instrument [custom code traces and custom metrics](/docs/perf-mon/custom-code-traces) to measure specific aspects of your app's performance. |\n| | Monitor performance data in the console in real time | In the [Firebase console](//console.firebase.google.com/project/_/performance), you can monitor performance data from your users to learn the specific situations where your app's performance could be improved. You can also break down the performance data by [attributes](/docs/perf-mon/attributes), like app version, country, device, or OS. |\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)."]]