flutter_perf_monitor
0.3.1, released 4 months ago by bechattaoui.dev
Real-time performance monitoring with FPS tracking, memory usage, and CPU monitoring for Flutter.
What it does
Tracks real-time performance metrics in Flutter applications including FPS, system-level memory, and CPU usage. It provides native implementations for iOS and Android, alongside fallbacks for web and desktop platforms. Developers can display these metrics directly in the UI using a provided widget.
AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to monitor frame rates and UI performance during development or production.
- You want to track memory and CPU usage across Android and iOS platforms.
- You need built-in UI components to show real-time performance metrics.
Skip it when
- You are targeting environments where native hardware metrics or debug overlays are not desired.
- You require detailed profiling tools that go beyond basic real-time metrics.
Strengths
- Provides native support for memory and CPU usage on Android and iOS.
- Includes cross-platform fallback mechanisms for web and desktop platforms.
- Easy integration with a ready-to-use widget tree component.
Weaknesses
- Memory monitoring on web shows 0.0 MB due to browser security restrictions.
- CPU usage on desktop and web relies on FPS-based estimations rather than full native processes.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Initialize the monitor by calling FlutterPerfMonitor.initialize() in your main function and add PerfMonitorWidget to your widget tree.
import 'package:flutter_perf_monitor/flutter_perf_monitor.dart';
void main() {
FlutterPerfMonitor.initialize();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Column(
children: [
PerfMonitorWidget(),
Expanded(
child: YourAppContent(),
),
],
),
),
);
}
}Alternatives
Packages that do the same job and could replace flutter_perf_monitor.
- leak_tracker
Framework to detect memory leaks in Dart and Flutter applications
77Compare - thunder
Flutter debug overlay for real-time inspection of HTTP requests and WebSockets.
74Compare - floating_logger
A floating widget for real-time API request logging and debugging in Flutter.
73Compare - appdynamics_agent
Flutter plugin for AppDynamics mobile real‑user monitoring and analytics.
60Compare