Authored by John Tai

增加忽略性能统计的类名.reviewed by 孙凯

... ... @@ -82,7 +82,9 @@ static NSArray *kYHEventReportIgnoredViewControllerArray;
@"UICompatibilityInputViewController",
@"UIApplicationRotationFollowingController",
@"UIApplicationRotationFollowingControllerNoTouches",
@"UIViewController"
@"UIViewController",
@"YH_CategoryContainerVC",
@"YH_GuangContainerVC"
];
self.performanceTrackEnabled = NO;
... ...
... ... @@ -253,13 +253,11 @@
});
}
//如果是H5ViewController中的webview,按固定的key,取出起始时间,计算总耗时,否则按普通的webview处理。
- (void)timeEventEndWithWebView:(UIWebView *)webView status:(YHEventLoadStatus)status
{
NSTimeInterval elapsedTime;
if ([self.timedEvents[kYHEventReporrH5StartKey] doubleValue]>0) {
if ([self.timedEvents.allKeys containsObject:kYHEventReporrH5StartKey]) {
elapsedTime = [self eventElapsedTime:kYHEventReporrH5StartKey];
}else{
elapsedTime = [self eventElapsedTime:webView.yh_viewId];
... ...