apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.74k stars 1.81k forks source link

0.28.0版本,WXPerformance为什么是Deprecated的呢? #3198

Open Ryan-Shz opened 4 years ago

Ryan-Shz commented 4 years ago

0.28.0版本,为什么WXPerformance是Deprecated的呢?是有什么替代方案吗?

chenzefeng09 commented 4 years ago

implement IWXApmMonitorAdapter

Ryan-Shz commented 4 years ago

implement IWXApmMonitorAdapter

感谢回复,我做了下尝试,提取了以下这些性能数据:

{ "subProcedures": {}, "stage": { "callCreateFinish": 1587475195512, "callRenderSuccess": 1587475195527, "wxFirstInteractionView": 1587475195489, "wxFsRender": 1587475195561, "wxRenderTimeOrigin": 1587475195290, "wxLoadBundleStartOnJsThread": 1587475195296, "wxBeforeInvokeCreateInstanceContext": 1587475195323, "wxJSBundleCreateFinish": 1587475195512, "wxEndLoadBundle": 1587475195348, "wxDestroy": 1587475202728, "wxStartLoadBundle": 1587475195295, "wxInteraction": 1587475196172, "wxNewFsRender": 1587475195848 }, "stats": { "wxViewCost": 397, "wxExecJsCallBack": 0, "wxMaxComponentCount": 247, "wxScrollerCount": 2, "wxFSCallJsTotalNum": 1, "wxFSCallNativeTotalTime": 10, "wxInteractionScreenViewCount": 37, "wxBundleSize": 431.9462890625, "wxComponentCost": 59, "wxLayoutTime": 158, "wxMaxDeepVDomLayer": 10, "wxInteractionComponentCreateCount": 247, "wxFSCallNativeTotalNum": 1, "wxFSCallEventTotalNum": 1, "wxBodyRatio": 96.41025641025641, "wxFSCallJsTotalTime": 2, "wxReInitCount": 1, "wxImgUnRecycleCount": 11 }, "property": { "wxBundleUrl": "", "wxUseRuntimeApi": false, "wxBizID": "WeexPageActivity", "wxSDKVersion": "0.28.0", "wxContainerName": "WeexPageActivity", "wxInstanceType": "page", "wxBundleType": "Vue", "wxErrorCode": "0", "wxJSLibVersion": "0.29.7", "wxUIKitType": "platform" }, "type": "weex_page", "event": {} }

对这些字段是否有文档解释呢?或者可以参考的注释?

chenzefeng09 commented 4 years ago

only source code -_- stage里面的时间戳,都是一些渲染流程点的打点,从renderInternal方法读下去就行了