Diagnostic

This commit is contained in:
Roman Shevchenko
2012-10-04 15:43:21 +02:00
parent 531e30408e
commit 5f800662f6
@@ -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) {