Add log print for debugging
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 26 Jan 2023 05:18:42 +0000 (05:18 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 26 Jan 2023 06:54:09 +0000 (06:54 +0000)
This patch is to debug the performance of calling
the resource_get_cpu_boosting_level() function.

Change-Id: Idb26fb50a817a6dfd381b849c2f661433619b397
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/request/request_manager.cc

index e2e71f2d8eacb9d898c637d67fd2a674d78c7481..323991d0687c8847a59bdbfc4e6791eeee2ba2d3 100644 (file)
@@ -44,7 +44,9 @@ bool IsCpuBoostingHighLevel(pid_t pid) {
 
   resource_pid_t resource_pid { .pid = pid, };
   cpu_boosting_level_info_t info;
+  _W("resource_get_cpu_boosting_level(%d) ++", pid);
   int ret = resource_get_cpu_boosting_level(resource_pid, &info);
+  _W("resource_get_cpu_boosting_level(%d) --", pid);
   if (ret != 0)
     return false;