File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default wv
72
72
## 自定义指标的收集
73
73
74
74
在真实的业务中,我们收集的指标经常会包含一些跟业务相关的指标,譬如,自定义首屏时间时,需要等页面上首屏接口请求完成,页面图片全部渲染完成才算首屏渲染完成的时间。
75
- 面对这样的业务场景,@mito/ web-performance 也是具备自定义的能力。 在初始化的时候,增加customPaintMetrics属性,然后就可以调用wv.customCompletedPaint方法来自定义页面渲染的完成时间。
75
+ 面对这样的业务场景,@zyf2e/monitor- web-performance 也是具备自定义的能力。 在初始化的时候,增加customPaintMetrics属性,然后就可以调用wv.customCompletedPaint方法来自定义页面渲染的完成时间。
76
76
77
77
``` javascript
78
78
// performance.js
@@ -128,7 +128,7 @@ const home = () => {
128
128
129
129
## SDK的兼容性
130
130
131
- 因为@mito/ web-performance 中使用到了PerformanceObserver对象,所以在safari浏览器中不支持FP、FCP、LCP、FID指标的收集。
131
+ 因为@zyf2e/monitor- web-performance 中使用到了PerformanceObserver对象,所以在safari浏览器中不支持FP、FCP、LCP、FID指标的收集。
132
132
133
133
## API文档
134
134
https://github.com/clouDr-f2e/mitojs/tree/dev/packages/web-performance
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const wxPerformance = new MITO.WxPerformance({
62
62
63
63
## 兼容性
64
64
65
- 因为@mito/ mini-performance 中使用到了wx.getPerformance()。所以小程序基础库 2.11.0 开始支持,低版本需做兼容处理。
65
+ 因为@zyf2e/monitor- mini-performance 中使用到了wx.getPerformance()。所以小程序基础库 2.11.0 开始支持,低版本需做兼容处理。
66
66
67
67
## API文档
68
68
https://github.com/clouDr-f2e/mitojs/tree/dev/packages/mini-performance
Original file line number Diff line number Diff line change 1
1
# @zyf2e/monitor-core
2
2
3
- 给` @mitojs ` 提供一系列的核心类与函数
3
+ 给` @zyf2e/monitor ` 提供一系列的核心类与函数
4
4
5
5
### Breadcrumb
6
6
收集用户行为
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const name = path.basename(packageDir)
27
27
// const pathResolve = (p) => path.resolve(packageDir, p)
28
28
29
29
// major name
30
- const M = '@mitojs '
30
+ const M = '@zyf2e/monitor '
31
31
const packageDirs = fs . readdirSync ( packagesDir )
32
32
const paths = { }
33
33
packageDirs . forEach ( ( dir ) => {
@@ -40,7 +40,7 @@ packageDirs.forEach((dir) => {
40
40
const common = {
41
41
input : `${ packageDir } /src/index.ts` ,
42
42
output : {
43
- banner : `/* ${ M } / ${ name } version ' + ${ masterVersion } */` ,
43
+ banner : `/* ${ M } - ${ name } version ' + ${ masterVersion } */` ,
44
44
footer : '/* follow me on Github! @cjinhuo */'
45
45
} ,
46
46
external : [ ...Object . keys ( paths ) ] ,
You can’t perform that action at this time.
0 commit comments