...
|
...
|
@@ -79,9 +79,9 @@ |
|
|
}
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].httpPerformanceTrackEnable) {
|
|
|
if (error) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithSessionURL:location status:YHEventLoadStatusFailed];
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithSessionURL:[NSString stringWithFormat:@"%@",location] status:YHEventLoadStatusFailed];
|
|
|
}else{
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithSessionURL:location status:YHEventLoadStatusSuc];
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithSessionURL:[NSString stringWithFormat:@"%@",location] status:YHEventLoadStatusSuc];
|
|
|
}
|
|
|
}
|
|
|
}];
|
...
|
...
|
@@ -130,7 +130,6 @@ static inline BOOL yher_addMethod(Class class, SEL selector, Method method) { |
|
|
|
|
|
+ (void)yherswizzleResumeAndSuspendMethodForClass:(Class)class {
|
|
|
Method yherResumeMethod = class_getInstanceMethod(self, @selector(yher_resume));
|
|
|
Method yherSuspendMethod = class_getInstanceMethod(self, @selector(yher_suspend));
|
|
|
yher_addMethod(class, @selector(yher_resume), yherResumeMethod);
|
|
|
yher_swizzleSelector(class, @selector(resume), @selector(yher_resume));
|
|
|
}
|
...
|
...
|
|