Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Firebase Performance Monitoring
plat_ios
plat_android
plat_web
plat_flutter
Acquisisci informazioni sui problemi di prestazioni della tua app.
Firebase Performance Monitoring è un servizio che ti aiuta a ottenere informazioni sul
caratteristiche delle prestazioni delle tue app Apple, Android e web.
Utilizzi l'SDK Performance Monitoring per raccogliere i dati sul rendimento dalla tua app, poi
per rivedere e analizzare i dati nella console Firebase. Performance Monitoring ti aiuta
a capire in tempo reale dove puoi migliorare il rendimento della tua app in modo da poter utilizzare queste informazioni per risolvere i problemi di rendimento.
Iniziamo? Scegli la tua piattaforma:
iOS e versioni successive
Android
Web
Flutter
Funzionalità chiave
Misura automaticamente il tempo di avvio dell'app, le richieste di rete HTTP e
altro ancora |
Quando integri l'SDK Performance Monitoring nella tua app, non è necessario
scrivere il codice prima che l'app inizi a monitorare automaticamente diversi
gli aspetti critici delle prestazioni.
Per le app native, l'SDK registra il tempo di avvio, il rendering dei dati per schermata e l'attività in primo piano o in background. Per le app web, l'SDK
come First Contentful Paint, capacità di interazione degli utenti
la tua app e altro ancora. |
Acquisisci informazioni sulle situazioni in cui potrebbero essere le prestazioni dell'app
migliorata |
Ottimizzare le prestazioni della tua app può essere difficile quando non è così
sapete esattamente perché non soddisfano le aspettative degli utenti. Ecco perché
Performance Monitoring ti consente di visualizzare le metriche sul rendimento suddivise per
attributi, come paese,
dispositivo, versione dell'app e livello del sistema operativo. |
Personalizza il monitoraggio per la tua app |
Puoi instrumentare
tracce di codice personalizzate
per acquisire il rendimento della tua app in situazioni specifiche, ad esempio quando
caricare una nuova schermata o visualizzare una nuova funzionalità interattiva. Inoltre, puoi
Crea metriche personalizzate su queste tracce di codice personalizzate per conteggiare gli eventi
definiti durante le tracce (come i successi della cache). |
Identifica le variazioni significative del rendimento dell'app |
Identificare e risolvere i principali problemi di prestazioni dell'app, come le interruzioni della rete, è fondamentale per il successo della tua app. Il monitoraggio delle prestazioni ti consente di configurare e personalizzare gli avvisi per le parti più critiche della tua app, in modo da rilevare e rispondere ai problemi di prestazioni prima che influiscano sugli utenti. |
Come funziona?
Quando aggiungi l'SDK Performance Monitoring, Firebase inizia automaticamente a raccogliere
relativi a diversi processi comuni nella tua app, ad esempio:
Performance Monitoring utilizza le tracce per raccogliere dati su questi processi. Una traccia è
un report contenente i dati acquisiti tra due momenti nella tua app.
I dati sulle prestazioni raccolti per ogni traccia sono chiamati metriche e variano
a seconda del tipo di traccia. Ad esempio, quando un'istanza della tua app genera problemi
una richiesta di rete, la traccia raccoglie metriche importanti per
il monitoraggio delle richieste, come il tempo di risposta e la dimensione del payload.
Ogni volta che un'istanza della tua app esegue un processo monitorato, la traccia associata raccoglie automaticamente anche i dati degli attributi per l'istanza dell'app. Per
Ad esempio, se un'app per Android invia una richiesta di rete, la traccia raccoglie
dispositivo, versione dell'app e altri attributi per quella specifica istanza di app. Tu
puoi utilizzare questi attributi per filtrare i dati sul rendimento e scoprire se
segmenti utenti stanno riscontrando problemi.
Le tracce pronte all'uso di Performance Monitoring ti consentono di iniziare a monitorare
ma per saperne di più sulle prestazioni di attività o flussi specifici,
strumentare le tue tracce di codice personalizzate
all'interno dell'app.
Percorso di implementazione
|
Aggiungi l'SDK Performance Monitoring alla tua app
|
Puoi aggiungere l'SDK Performance Monitoring alla tua app, insieme a qualsiasi altro
I prodotti Firebase che vuoi utilizzare nella tua app.
Piattaforme Apple |
Android |
Web |
Flutter
|
|
(Facoltativo)
Esegui l'instrumentazione delle tracce di codice personalizzato e delle metriche personalizzate nella tua app
|
Con l'SDK Performance Monitoring, puoi eseguire la strumentazione di tracce di codice personalizzate e metriche personalizzate per misurare aspetti specifici del rendimento della tua app.
|
|
Monitora i dati sulle prestazioni nella console in tempo reale
|
Nella
Console Firebase,
puoi monitorare i dati sul rendimento dei tuoi utenti per conoscere
situazioni in cui le prestazioni della tua app potrebbero essere migliorate. Puoi anche
suddividere i dati sul rendimento in base agli
attributi, ad esempio versione dell'app,
paese, dispositivo o sistema operativo.
|
Dati utente
Performance Monitoring non memorizza in modo permanente nessuna identificazione personale
informazioni personali (ad esempio nomi, indirizzi email o numeri di telefono). Durante il monitoraggio
Richieste di rete HTTP, Performance Monitoring utilizza URL (esclusi i parametri URL)
per creare pattern URL aggregati e anonimi che alla fine vengono mantenuti
e mostrato nella console Firebase.
Per ulteriori dettagli, consulta
Esempi di informazioni raccolte
Performance Monitoring.
Passaggi successivi
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-24 UTC.
[null,null,["Ultimo aggiornamento 2025-07-24 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)."]]