Tools for gauging/measuring some performance metrics.
Currently there's only one tool to measure iOS CPU/GPU usages for Flutter's CI tests. It's only tested on Xcode 10 and it's known that Xcode 11 may not be compatible.
pub global activate gauge
Connect an iPhone, run a Flutter app on it, and
pub global run gauge ioscpugpu new
gpu: 12.4%, cpu: 22.525%
For more information, try
pub global run gauge help pub global run gauge help ioscpugpu pub global run gauge help ioscpugpu new pub global run gauge help ioscpugpu parse
- Download depot_tools automatically.
- More fixes from health suggestions.
- Fix the resource downloading bug.
- Improve tests and remove unnecessary resources.
- Initial release.
Use this package as an executable
1. Install it
You can install the package from the command line:
$ pub global activate gauge
2. Use it
The package has the following executables:
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: gauge: ^0.1.4
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:gauge/commands/base.dart'; import 'package:gauge/commands/ioscpugpu.dart'; import 'package:gauge/commands/ioscpugpu/new.dart'; import 'package:gauge/commands/ioscpugpu/parse.dart'; import 'package:gauge/parser.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Oct 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.5.1
- pana: 0.12.21
Detected platforms: Flutter, other
Platform components identified in package:
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
gauge.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.