p-hatan/ mirror

pub repository

mirror.p-hatan.ir

timing

1.0.2

A simple package for tracking the performance of synchronous and asynchronous actions.

Download archive

Readme

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.

Changelog

1.0.2

  • Require Dart 3.4.
  • Move to dart-lang/tools monorepo.

1.0.1

  • Require Dart 2.14.

1.0.0

  • Enable null safety.
  • Require Dart 2.12.

0.1.1+3

  • Allow package:json_annotation '>=1.0.0 <5.0.0'.

0.1.1+2

  • Support the latest version of package:json_annotation.
  • Require Dart 2.2 or later.

0.1.1+1

  • Support the latest version of package:json_annotation.

0.1.1

  • Add JSON serialization

0.1.0

  • Initial release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add timing
pubspec.yaml
name: timing
version: 1.0.2
description: >-
  A simple package for tracking the performance of synchronous and asynchronous
  actions.
repository: https://github.com/dart-lang/tools/tree/main/pkgs/timing

environment:
  sdk: ^3.4.0

dependencies:
  json_annotation: ^4.9.0

dev_dependencies:
  build_runner: ^2.0.6
  dart_flutter_team_lints: ^3.0.0
  json_serializable: ^6.0.0
  test: ^1.17.10

Version history

VersionPublishedArchiveSHA-256
0.1.02018-09-11T19:10:03.736537ZDownload464fd71eca5fc25c7de09e25e436387979d4912cf6848a006c007e7d35358202
0.1.12018-09-18T18:13:31.185989ZDownloadfee8eb38ad4abe2bff606fd7c6a15ccfed501bd6a0eb845c8121923d15c1a6ba
0.1.1+12018-10-23T21:36:58.968733ZDownloadcff7657141eff7fafc11561be81cd9d1b08a5500fde6a4722ad0956b739825ff
0.1.1+22019-08-08T17:37:21.554879ZDownloadfaf8a00fc05606fdf5a275c198604b49c0b3f00fe35284704eea77f2040d1215
0.1.1+32020-12-09T01:58:10.348672ZDownload3f88d1d53e39741b541633abb7adf9eaf0efbd418dddcfd71a9ed1561ce2e811
1.0.02021-03-10T19:07:29.480196ZDownloadc386d07d7f5efc613479a7c4d9d64b03710b03cfaa7e8ad5f2bfb295a1f0dfad
1.0.12023-01-19T23:03:12.093392ZDownload70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32
1.0.22024-12-12T10:05:02.423186ZDownload62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe

Dependencies

json_annotation "^4.9.0"