Git Product home page Git Product logo

episodes.dart's Introduction

Episodes

A framework for timing performance of web apps. This package contains libraries to measure timing metrics in web applications. You can use it to measure something small entirely on the client side, or you can use it to send beacons to a server and gather end-to-end measurements of your application.

This library is a port of Steve Souders's Episodes JS library with some additional modifications and additions of our own.

Using Episodes

Add the episodes package to your pubspec.yaml file, selecting a version range that works with your version of the SDK. For example:

dependencies:
  episodes: ">=0.3.0 <0.3.1"

Then you can directly import the episodes library via packages:episodes/episodes.dart. This library exposes the Episodes class, which contains methods you can use to instrument your code.

You can call mark() to mark points in time, or call measure() to record intervals between two such points. You can later extract the results as a graphical timeline in HTML, as HTML tables, or you can send them to a listener via window.postMessage.

There is an associated Reporter class for listening to the window.postMessage notifications. This can be customized in suitable ways. For example, the default case is like the original episodes library; there is also a Yahoo Boomerang compatible reporter available.

A note about versions

This package follows semantic versioning. Prior to 1.0, we follow a similar scheme to semantic versioning. We treat the 'patch' number as the 'minor' version, and use + as a patch. So a change from 0.3.0 to 0.3.0+1 is a non-breaking change, but a change from 0.3.0 to 0.3.1 is considered a breaking change. Additionally we try to match the minor version with the current milestone from the Dart SDK. The first release of episodes is versioned as 0.3.0 because it was developed under the first M3 release of the Dart SDK. If Dart M4 has breaking changes, our library at that point will jump to version 0.4.

episodes.dart's People

Contributors

jakemac53 avatar pavelgj avatar sigmundch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

episodes.dart's Issues

Dart:Uri no longer exists

As above, the URI class is now in Dart core so you get the 'dart:uri is not available in Dartium' error when using this library.

'

Date is now DateTime

Line 249 should be changed to this

int now = new DateTime.now().millisecondsSinceEpoch;

Date is now DateTime

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.