tree: 52cb84ac75078755c4220d92b73b4b338eb17f28 [path history] [tgz]
  1. lib/
  2. test/
  3. .gitignore
  4. .travis.yml
  5. analysis_options.yaml
  6. CHANGELOG.md
  7. LICENSE
  8. pubspec.yaml
  9. README.md
pkgs/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