dengsixing пре 3 година
родитељ
комит
5c0ba86da6

+ 10 - 0
4dkankan-center-scene-download/src/main/java/com/fdkankan/download/service/impl/SceneDownloadHandlerServiceImpl.java

@@ -200,11 +200,17 @@ public class SceneDownloadHandlerServiceImpl {
             }
 
 
+            long start = Calendar.getInstance().getTimeInMillis();
             //固定文件写入
             count = this.zipLocalFiles(out, v3localFilePaths, v3localPath, num, count, total);
+            long end1 = Calendar.getInstance().getTimeInMillis();
+            log.info("打包固定文件耗时:{}", end1 - start);
 
             //oss文件写入
             count = this.zipOssFiles(out, ossFilePaths, num, count, total, resolution, imagesVersion, cacheKeys);
+            long end2 = Calendar.getInstance().getTimeInMillis();
+            log.info("打包oss文件耗时:{}", end2 - end1);
+
 
             //写入启动命令
             this.zipBat(out, num);
@@ -254,7 +260,9 @@ public class SceneDownloadHandlerServiceImpl {
             }else if((filePath.contains(imageNumPath + "panorama/") && filePath.contains("tiles/" + resolution)) || filePath.contains(imageNumPath + "tiles/" + resolution + "/")) {
                 this.processImage(filePath, out, resolution, imagesVersion, cacheKeys);
             }else{
+                long start = Calendar.getInstance().getTimeInMillis();
                 this.ProcessFiles(filePath, out, this.wwwroot, cacheKeys);
+                log.info("非切图文件耗时,key:{},time:{}", filePath, Calendar.getInstance().getTimeInMillis() - start);
             }
 
             //更新进度
@@ -401,7 +409,9 @@ public class SceneDownloadHandlerServiceImpl {
                     continue;
                 }
                 imgKeys.add(fky);
+                long start = Calendar.getInstance().getTimeInMillis();
                 this.zipBytes(out, wwwroot + fky, FileUtils.getBytesFromUrl(url));
+                log.info("切图耗时,url:{},time:{}", url, Calendar.getInstance().getTimeInMillis() - start);
             }
 
         }