npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stutter_monitor

v1.2.1

Published

卡顿异常退出检测

Downloads

3

Readme

卡顿检测工具

用于检测页面fps过低 或 js主线程卡死状态,有问题请钉钉联系@崔峰博

安装方式

vnpm方式:

 npm install stutter_monitor --save

使用文档

var configer={//配置参数 可以不传 不传将使用页面中所示默认值
    show:false,//布尔值 是否显示fps提示框
    limit:30,//number 卡顿阀值 当前页面fps低于该数值时开始累计卡顿值 卡顿值超过卡顿灵敏度时 上报卡顿
    lagMax:120,//number 卡顿灵敏度 数字越低 报警越灵敏
    logLevel:1//number 控制台消息 0 只输出异常消息 1 输出常规消息 2 输出所有消息 
}
var _c = new MO(configer,callback)
function callback(d){
    console.log(d.message);
    switch (d.code) {
        case 0:
           console.log(d.code);
            break;
        case 1:
            console.warn(d.value);
            break;
        case 2: 
            console.error(d.message)
        default:
            
            break;
    }
    //d.message 消息
    //d.code //0 正常 / 1 有卡顿 / 2 异常状态
    //当d.code 为 1时  d.value 为当前fps 或上次异常退出的时间戳
}

联系方式

没啥问题尽量不联系