From c6163fd3e43e5872607b43252cd5e3c3e519a548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 6 Jun 2021 10:52:51 +0200 Subject: [PATCH] Only log slow file listings --- Common/File/AndroidStorage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/File/AndroidStorage.cpp b/Common/File/AndroidStorage.cpp index deacb16e1a..6ea6983f5e 100644 --- a/Common/File/AndroidStorage.cpp +++ b/Common/File/AndroidStorage.cpp @@ -161,7 +161,9 @@ std::vector Android_ListContentUri(const std::string &path) { env->DeleteLocalRef(fileList); double elapsed = time_now_d() - start; - INFO_LOG(FILESYS, "Listing directory on content URI took %0.3f s", elapsed); + if (elapsed > 0.1) { + INFO_LOG(FILESYS, "Listing directory on content URI took %0.3f s (%d files)", elapsed, (int)size); + } return items; }