Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
*[iOS] revert statistics improvement for weex rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
boboning authored and cxfeng1 committed Jun 20, 2018
1 parent dc1936e commit 216684c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ - (void)createFinish
[self _addUITask:^{
UIView *rootView = instance.rootView;

//WX_MONITOR_INSTANCE_PERF_END(WXPTFirstScreenRender, instance);
WX_MONITOR_INSTANCE_PERF_END(WXPTFirstScreenRender, instance);
WX_MONITOR_INSTANCE_PERF_END(WXPTAllRender, instance);
WX_MONITOR_SUCCESS(WXMTJSBridge);
WX_MONITOR_SUCCESS(WXMTNativeRender);
Expand Down
6 changes: 3 additions & 3 deletions ios/sdk/WeexSDK/Sources/Monitor/WXMonitor.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ + (void)commitPerformanceWithDict:(NSMutableDictionary *)commitDict instance:(WX
commitDict[@"instanceId"] = [instance instanceId]?:@"";

//new performance point
if (!commitDict[SCREENRENDERTIME] && commitDict[TOTALTIME]) {
commitDict[SCREENRENDERTIME] = commitDict[TOTALTIME];
}
// if (!commitDict[SCREENRENDERTIME] && commitDict[TOTALTIME]) {
// commitDict[SCREENRENDERTIME] = commitDict[TOTALTIME];
// }

commitDict[CALLCREATEINSTANCETIME] = commitDict[COMMUNICATETIME];
commitDict[COMMUNICATETOTALTIME] = commitDict[TOTALTIME];
Expand Down

0 comments on commit 216684c

Please sign in to comment.