[vfs] correcting refresh session log root type stats
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Thu, 13 Aug 2020 17:51:32 +0000 (19:51 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 13 Aug 2020 17:51:32 +0000 (17:51 +0000)
GitOrigin-RevId: e549e967ed55099301348d8fd35c59452a0fa0b6

platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/RefreshSessionImpl.java

index 7dd564e0afdf7b79d479643b5878f996f76922bf..da245af2a54c94e5f6056ace6bb1198170522c8d 100644 (file)
@@ -166,9 +166,10 @@ final class RefreshSessionImpl extends RefreshSession {
       }
       else if (REFRESH_SESSION_DURATION_REPORT_THRESHOLD_SECONDS > 0 && t > REFRESH_SESSION_DURATION_REPORT_THRESHOLD_SECONDS * 1000L) {
         snapshot.logResponsivenessSinceCreation(String.format(
-          "Refresh session (queue size: %s, file types: %s, result: %s, tries: %s, events: %d)",
+          "Refresh session (queue size: %s, root types: %s, result: %s, tries: %s, events: %d)",
           workQueue.size(),
-          workQueue.stream().collect(Collectors.groupingBy(f -> f.isDirectory() ? "dir" : String.valueOf(f.getExtension()), Collectors.counting())),
+          workQueue.stream().collect(
+            Collectors.groupingBy(f -> !f.isDirectory() ? "file" : f.getFileSystem() instanceof ArchiveFileSystem ? "arc" : "dir", Collectors.counting())),
           myCancelled ? "cancelled" : "done",
           count,
           myEvents.size()));