Google Performance Monitoring for Firebase

pub package

A Flutter plugin to use the Google Performance Monitoring for Firebase API.

For Flutter plugins for other Firebase products, see

Note: This plugin is still under development, and some APIs might not be available yet. Feedback and Pull Requests are most welcome!


To use this plugin, add firebase_performance as a dependency in your pubspec.yaml file. You must also configure firebase performance monitoring for each platform project: Android and iOS (see the example folder or for step by step details).

Define a Custom Trace

A custom trace is a report of performance data associated with some of the code in your app. To learn more about custom traces, see the Performance Monitoring overview.

Trace myTrace = FirebasePerformance.instance.newTrace("test_trace");

Item item = cache.fetch("item");
if (item != null) {
} else {


Getting Started

See the example directory for a complete sample app using Google Performance Monitoring for Firebase.