Code Monkey home page Code Monkey logo

k-report's Introduction

K-Report

image

Build Status npm version Downloads License

Hope this is the best report you used library

  • loadtime: Report of the dom related time and ATF
  • network: Report the resource requests timeout
  • error: Record the request and error code

Instructions

Close it on the web, send a statistical package

Examples

    KReport.setOptions()

DEMO

http://k-report.404mzk.com/Example/loadtime/index.html

Try to send the report on the console to perform KReport.sendMessage() active packet

Installation

<script src="http://publish.404mzk.com/1-0-0index.bundle.js"></script>

And it's just as easy with npm:

npm i --save npm install K-Report 

Data Abnormal

Loadtime

  1. atf === -1 : 用户刷新过快,还没统计首屏时间
  2. atf > window_loaded : 用户刷新过快,还没统计完首屏时间

Report Data

k-report's People

Stargazers

Tony avatar 404_K avatar

Watchers

James Cloos avatar 404_K avatar

k-report's Issues

捕抓因location.href非实时, 而导致的错误上报

k-report捕抓到的信息
qq20170721-125553

回去找一下代码

qq20170721-125828

如果error_message如果不为空 就证明接口错误了, 而执行了跳转页面 location.href

但是 location.href并不会立马跳转, 而是把当前还没执行完的函数跑完, 所以就到了下面的

result.car_list, 因为接口错误了 这个值为undefined, 所以splice不存在, 就上报了错误

所以 location.href后 为了避免之后的程序继续跑, 应该 return

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.