...
|
...
|
@@ -54,15 +54,24 @@ |
|
|
#pragma mark - hook API
|
|
|
- (void)yher_sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event {
|
|
|
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].isButtonPerformanceTrackEnable) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventStartWithUIControl:self];
|
|
|
@try {
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].isButtonPerformanceTrackEnable) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventStartWithUIControl:self];
|
|
|
}
|
|
|
} @catch (NSException *exception) {
|
|
|
YHLog(@"%@ error: %@", self, exception);
|
|
|
}
|
|
|
|
|
|
[self yher_sendAction:action to:target forEvent:event];
|
|
|
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].isButtonPerformanceTrackEnable) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithUIControl:self];
|
|
|
@try {
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].isButtonPerformanceTrackEnable) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithUIControl:self];
|
|
|
}
|
|
|
} @catch (NSException *exception) {
|
|
|
YHLog(@"%@ error: %@", self, exception);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
@end |
...
|
...
|
|