0.2.16 • Published 12 months ago

debug-timing v0.2.16

Weekly downloads
28
License
MIT
Repository
-
Last release
12 months ago

DebugTiming

Demo地址

页面资源/接口耗时监听可视化。performance的resource在监听接口的时候检测不出同名接口不同参数的接口区分,而且network耗时是不包含js执行耗时,所以增加XMLHttpRequest和fetch的接口调用耗时监听

debug图标显示/隐藏快捷键 shift + alt + G

API

参数类型说明必填默认值
isDragboolean按钮是否需要拖拽true
autoPosboolean按钮是否需要自动靠边true
sizenumber按钮大小34
placement't','tr','rt','r','rb','br','b','bl','lb','l','lt','tl'按钮默认位置'br'
alwaysShowboolean是否一直显示debug Iconfalse
IconReactElement自定义icon-
npm i debug-timing -D
yarn add debug-timing -D
import DebugTiming from 'debug-timing';

const App = () => {
  return (
    <div>
      {content}
      <DebugTiming />
    </div>
  );
};

ReactDOM.render(
  <App />,
  document.getElementById('Demo'),
);
0.2.16

12 months ago

0.2.15

12 months ago

0.2.14

12 months ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.7

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago