You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/08/13 07:08:20 UTC

[GitHub] [incubator-weex] wqyfavor commented on a change in pull request #2818: [iOS] output render timeline on iOS

wqyfavor commented on a change in pull request #2818: [iOS] output render timeline on iOS
URL: https://github.com/apache/incubator-weex/pull/2818#discussion_r313247035
 
 

 ##########
 File path: ios/sdk/WeexSDK/Sources/Performance/WXApmForInstance.m
 ##########
 @@ -167,6 +175,11 @@ - (long) onStage:(NSString *)name
     if(_isEnd){
         return 0;
     }
+    if ([name isEqualToString:KEY_PAGE_STAGES_RENDER_ORGIGIN]) {
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+            [self printRecordStageMap];
+        });
+    }
 
 Review comment:
   这里是不是应该使用block的weakSelf逻辑来写。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services