From 5f800662f677fce068166b77e8b4b27148c9c006 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 4 Oct 2012 15:33:21 +0200 Subject: [PATCH] Diagnostic --- .../intellij/openapi/util/io/win32/IdeaWin32.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/platform/util/src/com/intellij/openapi/util/io/win32/IdeaWin32.java b/platform/util/src/com/intellij/openapi/util/io/win32/IdeaWin32.java index 9aa1cc66fa0e..5a4589d2a25e 100644 --- a/platform/util/src/com/intellij/openapi/util/io/win32/IdeaWin32.java +++ b/platform/util/src/com/intellij/openapi/util/io/win32/IdeaWin32.java @@ -109,8 +109,16 @@ public class IdeaWin32 { @Nullable public FileInfo[] listChildren(@NotNull final String path) { - LogUtil.debug(LOG, "list(%s)", path); - return listChildren0(path(path)); + if (LOG.isDebugEnabled()) { + long t = System.currentTimeMillis(); + FileInfo[] children = listChildren0(path(path)); + t = System.currentTimeMillis() - t; + LOG.debug("list(" + path + "): " + children.length + " children, " + t + " ms"); + return children; + } + else { + return listChildren0(path(path)); + } } private static String path(final String path) {