Authored by John Tai

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

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