Giter Site home page Giter Site logo

watcherman's Introduction

watcherman

Implementation of the RAIL model for monitoring the runtime performance of a website

用于监控网页运行时性能指标,可搭建RAIL模型

  • R(Response): 返回用户click及关键操作的反馈时间
  • A(Animation): 返回用户交互过程中,生成帧的时间,通过fps体现
  • I(Idle): 返回交互过程中主线程的空闲情况,通过 longTask 体现
  • L(Load): 返回资源加载情况,包含 resource 的加载情况,以及自定义的打标情况

使用方法

  1. 引入watcherman

  2. 通过init指定希望检测的指标以及检测时间 init 接受一个对象,包含如下参数: entryTypes: 希望获取的performance信息 默认的指标为['longtask', 'paint', 'resource', 'fps', 'mark', 'measure']

duration: 监控的周期

cb: 回调函数

example:

performanceWatcher.init({
 entryTypes: ['longtask'],
 duration: 2000,
 cb
});

watcherman's People

Contributors

nanchenk avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.