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

Commit

Permalink
[iOS] fix recode time incorrect on eagle
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Dec 14, 2018
1 parent 491cc95 commit 09ca033
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ - (void)renderView:(id)source options:(NSDictionary *)options data:(id)data
_jsData = data;

self.needValidate = [[WXHandlerFactory handlerForProtocol:@protocol(WXValidateProtocol)] needValidate:self.scriptURL];
if (self.dataRender) {
[self.apmInstance setProperty:KEY_PAGE_PROPERTIES_RENDER_TYPE withValue:@"wxEagle"];
}

if ([source isKindOfClass:[NSString class]]) {
WXLogDebug(@"Render source: %@, data:%@", self, [WXUtility JSONString:data]);
Expand Down Expand Up @@ -284,6 +281,9 @@ - (void)_renderWithData:(NSData *)contents
//some case , with out render (url)
[self.apmInstance startRecord:self.instanceId];
self.apmInstance.isStartRender = YES;
if (self.dataRender) {
[self.apmInstance setProperty:KEY_PAGE_PROPERTIES_RENDER_TYPE withValue:@"wxEagle"];
}

self.performance.renderTimeOrigin = CACurrentMediaTime()*1000;
self.performance.renderUnixTimeOrigin = [WXUtility getUnixFixTimeMillis];
Expand Down Expand Up @@ -360,6 +360,9 @@ - (void)_renderWithMainBundleString:(NSString *)mainBundleString
[self _checkPageName];
[self.apmInstance startRecord:self.instanceId];
self.apmInstance.isStartRender = YES;
if (self.dataRender) {
[self.apmInstance setProperty:KEY_PAGE_PROPERTIES_RENDER_TYPE withValue:@"wxEagle"];
}

self.performance.renderTimeOrigin = CACurrentMediaTime()*1000;
self.performance.renderUnixTimeOrigin = [WXUtility getUnixFixTimeMillis];
Expand Down Expand Up @@ -480,9 +483,6 @@ - (void)_renderWithRequest:(WXResourceRequest *)request options:(NSDictionary *)
newOptions[bundleUrlOptionKey] = ((NSURL*)newOptions[bundleUrlOptionKey]).absoluteString;
}
_options = [newOptions copy];
if (self.dataRender) {
[self.apmInstance setProperty:KEY_PAGE_PROPERTIES_RENDER_TYPE withValue:@"wxEagle"];
}
request.userAgent = [WXUtility userAgent];

WX_MONITOR_INSTANCE_PERF_START(WXPTJSDownload, self);
Expand Down

0 comments on commit 09ca033

Please sign in to comment.