gauge 0.1.5

  • Readme
  • Changelog
  • Installing
  • 48

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.

Install #

First install Xcode 10.3 (, dart, and git. Make sure that pub, git, and instruments are on your path.

Then run:

pub global activate gauge

Run #

Connect an iPhone, run a Flutter app on it, and

pub global run gauge ioscpugpu new

Sample output:

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

0.1.5 #

  • Print more logs for debugging.

0.1.4 #

  • Download depot_tools automatically.

0.1.3 #

  • More fixes from health suggestions.

0.1.2 #

  • Fix the resource downloading bug.

0.1.1 #

  • Improve tests and remove unnecessary resources.

0.1.0 #

  • 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:

$ gauge

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  gauge: ^0.1.5

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ 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]
Learn more about scoring.

We analyzed this package on Mar 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and gauge.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
args ^1.5.2 1.6.0
meta ^1.1.7 1.1.8
Dev dependencies
test ^1.6.8