From: Hwankyu Jhun Date: Wed, 12 Jul 2023 04:58:00 +0000 (+0900) Subject: Add printing log message for debugging X-Git-Tag: accepted/tizen/unified/20230713.143449~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c33d693a457c3c6569f08aaf3d98eb0ef17f3073;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Add printing log message for debugging To debug the performance issue, this patch adds log print to the Util::CloseAllFds(). Change-Id: Id6a1eb2439eb57c5a7123cf5cb448a704be154b0 Signed-off-by: Hwankyu Jhun --- diff --git a/src/lib/launchpad-glib/util.cc b/src/lib/launchpad-glib/util.cc index 12745e1b..700eecaa 100644 --- a/src/lib/launchpad-glib/util.cc +++ b/src/lib/launchpad-glib/util.cc @@ -481,12 +481,13 @@ void Util::CloseAllFds() { fds.push_back(fd); } - - for (auto fd : fds) - close(fd); } catch (const fs::filesystem_error& e) { _E("Execption occurs. error(%s)", e.what()); } + + _W("size: %zd", fds.size()); + for (auto fd : fds) + close(fd); } int Util::PrepareAppSocket() {