tree: a17fa826671d409ad3e815e091d8c1c66922a3d7 [path history] [tgz]
  1. lib/
  2. test/
  3. .gitignore
  4. analysis_options.yaml
  5. CHANGELOG.md
  6. LICENSE
  7. pubspec.yaml
  8. README.md
pkgs/timing/README.md

Build Status pub package package publisher

Timing is a simple package for tracking performance of both async and sync actions

Usage

var tracker = AsyncTimeTracker();
await tracker.track(() async {
  // some async code here
});

// Use results
print('${tracker.duration} ${tracker.innerDuration} ${tracker.slices}');

Building

Use the following command to re-generate lib/src/timing.g.dart file:

dart pub run build_runner build

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.