...
|
...
|
@@ -53,7 +53,7 @@ |
|
|
{
|
|
|
|
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].isImagePerformanceTrackEnable){
|
|
|
[[YH_EventCollector sharedInstance] timeEventStartWithWebImageDownload:self];
|
|
|
[[YH_EventCollector sharedInstance] timeEventStartWithWebImageDownloadURL:url.absoluteString];
|
|
|
}
|
|
|
|
|
|
return [self yher_downloadImageWithURL:url options:options progress:progressBlock completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
|
...
|
...
|
@@ -61,9 +61,8 @@ |
|
|
if ([YHEventReport sharedInstance].isPerformanceTrackEnabled && [YHEventReport sharedInstance].isImagePerformanceTrackEnable){
|
|
|
if (cacheType == SDImageCacheTypeNone) {//暂时只去下载的图片的时间,过滤掉读缓存的时间
|
|
|
if (error) {
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithWebImageDownload:self url:[NSString stringWithFormat:@"%@",url] status:YHEventLoadStatusFailed];
|
|
|
}else{
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithWebImageDownload:self url:[NSString stringWithFormat:@"%@",url] status:YHEventLoadStatusSuc];
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithWebImageDownloadURL:url.absoluteString status:YHEventLoadStatusFailed];
|
|
|
[[YH_EventCollector sharedInstance] timeEventEndWithWebImageDownloadURL:url.absoluteString status:YHEventLoadStatusSuc];
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|