Merge branch 'debug' into 'develop'
根据子开关判断是否调用startTrack See merge request !3
Showing
1 changed file
with
16 additions
and
7 deletions
@@ -157,16 +157,25 @@ static NSArray *kYHEventReportIgnoredViewControllerArray; | @@ -157,16 +157,25 @@ static NSArray *kYHEventReportIgnoredViewControllerArray; | ||
157 | */ | 157 | */ |
158 | -(void)startPerformanceTrack{ | 158 | -(void)startPerformanceTrack{ |
159 | self.performanceTrackEnabled = YES; | 159 | self.performanceTrackEnabled = YES; |
160 | - [UIViewController startTrack]; | ||
161 | - [UITabBar startTrack]; | ||
162 | -// [UIControl startTrack]; | ||
163 | -// [UITapGestureRecognizer startTrack]; | ||
164 | -// [NSURLConnection startTrack]; | 160 | + if ([YHEventReport sharedInstance].isControllerPerformanceTrackEnable) { |
161 | + [UIViewController startTrack]; | ||
162 | + [UITabBar startTrack]; | ||
163 | + } | ||
164 | + // [UIControl startTrack]; | ||
165 | + // [UITapGestureRecognizer startTrack]; | ||
166 | + // [NSURLConnection startTrack]; | ||
165 | 167 | ||
166 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ | 168 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ |
167 | - [UIWebView startTrack]; | ||
168 | - [SDWebImageManager startTrack]; | 169 | + |
170 | + if ([YHEventReport sharedInstance].isControllerPerformanceTrackEnable) { | ||
171 | + [UIWebView startTrack]; | ||
172 | + } | ||
173 | + | ||
174 | + if ([YHEventReport sharedInstance].isImagePerformanceTrackEnable) { | ||
175 | + [SDWebImageManager startTrack]; | ||
176 | + } | ||
169 | }); | 177 | }); |
178 | + | ||
170 | } | 179 | } |
171 | 180 | ||
172 | - (void)reportWithPointType:(YHPointType)type pointName:(YHEventReportPointName)name parameters:(NSDictionary *)param{ | 181 | - (void)reportWithPointType:(YHPointType)type pointName:(YHEventReportPointName)name parameters:(NSDictionary *)param{ |
-
Please register or login to post a comment