tree: b5fd116bc78167199a6fb452e30cf179b6f07e52 [path history] [tgz]
  1. lib/
  2. .gitignore
  3. .travis.yml
  4. analysis_options.yaml
  5. BUILD.gn
  6. CHANGELOG.md
  7. LICENSE
  8. pubspec.yaml
  9. README.md
timing/README.md

Build Status

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

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:

pub run build_runner build