diff --git a/App.uvue b/App.uvue index 96ec3334717724fa540a4a824b088fcf26a1c45e..dface834c998e67c5c9350b057d49d6a8a7c896a 100644 --- a/App.uvue +++ b/App.uvue @@ -7,16 +7,17 @@ export default { // 自动化测试 setLifeCycleNum(state.lifeCycleNum + 1000) console.log('App Launch') - - const performance = uni.getPerformance() - const observer1: PerformanceObserver = performance.createObserver( - (entryList: PerformanceObserverEntryList) => { - // console.log('observer1:entryList.getEntries()' +JSON.stringify(entryList.getEntries())) - } - ) - observer1.observe({ - entryTypes: ['render', 'navigation'], - } as PerformanceObserverOptions) + + // 页面性能分析 + // const performance = uni.getPerformance() + // const observer1: PerformanceObserver = performance.createObserver( + // (entryList: PerformanceObserverEntryList) => { + // console.log('observer1:entryList.getEntries()' +JSON.stringify(entryList.getEntries())) + // } + // ) + // observer1.observe({ + // entryTypes: ['render', 'navigation'], + // } as PerformanceObserverOptions) }, onShow: function () { // 自动化测试