Authored by John Tai

根据子开关判断是否调用startTrack

... ... @@ -157,16 +157,25 @@ static NSArray *kYHEventReportIgnoredViewControllerArray;
*/
-(void)startPerformanceTrack{
self.performanceTrackEnabled = YES;
[UIViewController startTrack];
[UITabBar startTrack];
// [UIControl startTrack];
// [UITapGestureRecognizer startTrack];
// [NSURLConnection startTrack];
if ([YHEventReport sharedInstance].isControllerPerformanceTrackEnable) {
[UIViewController startTrack];
[UITabBar startTrack];
}
// [UIControl startTrack];
// [UITapGestureRecognizer startTrack];
// [NSURLConnection startTrack];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[UIWebView startTrack];
[SDWebImageManager startTrack];
if ([YHEventReport sharedInstance].isControllerPerformanceTrackEnable) {
[UIWebView startTrack];
}
if ([YHEventReport sharedInstance].isImagePerformanceTrackEnable) {
[SDWebImageManager startTrack];
}
});
}
- (void)reportWithPointType:(YHPointType)type pointName:(YHEventReportPointName)name parameters:(NSDictionary *)param{
... ...