Flutter Dev Panel - Performance Module

pub package License: MIT Flutter

Performance monitoring module for Flutter Dev Panel that provides real-time FPS tracking, memory monitoring, and performance visualization.

Features

  • FPS tracking - Real-time frames per second monitoring
  • Memory usage - Track app memory consumption
  • Jank detection - Identify and highlight frame drops
  • Live charts - Real-time performance graphs
  • Performance history - Historical data with charts
  • FAB display - Shows FPS, memory usage, and jank warnings

Installation

dependencies:
  flutter_dev_panel_performance:
    path: ../packages/flutter_dev_panel_performance

Usage

import 'package:flutter_dev_panel/flutter_dev_panel.dart';
import 'package:flutter_dev_panel_performance/flutter_dev_panel_performance.dart';

void main() {
  // Initialize with performance module
  FlutterDevPanel.initialize(
    modules: [PerformanceModule()],
  );
  
  runApp(MyApp());
}

// Access performance data
final controller = PerformanceMonitorController.instance;
controller.startMonitoring();

// Get current metrics
final currentFPS = controller.currentFPS;
final memoryUsage = controller.memoryUsageMB;
final isJanky = controller.isJanky;

// Listen to updates
controller.addListener(() {
  print('FPS: ${controller.currentFPS}');
  print('Memory: ${controller.memoryUsageMB} MB');
});

License

This project is licensed under the MIT License - see the LICENSE file for details.