Skip logging thread information by performance at licensing tv 72/314772/2 accepted/tizen/unified/20240722.104238 accepted/tizen/unified/dev/20240724.110035 accepted/tizen/unified/x/20240723.043603
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 18 Jul 2024 05:57:39 +0000 (14:57 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Fri, 19 Jul 2024 05:13:16 +0000 (14:13 +0900)
Change-Id: I074c32e2a66b9cddbca6299e6d4fe9acb562430f

packaging/mused.spec
server/src/muse_server_private.c

index efa964096e33025e0babefb0c17b8e6e1af9fe40..73aaec15febbeec135db08cc0596186edb86b77d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.186
+Version:    0.3.187
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index e8bada8d10b6aac8aea21c4aba934bc4e1bed720..e1811a2b56ad0bef3ee8b35b2f6282df1b9e45e3 100644 (file)
@@ -1170,7 +1170,9 @@ int ms_deinit(void)
 void ms_check_cpu_memory(void)
 {
        int used_pss, memory_threshold, cpu_usage, cpu_threshold;
+#ifndef MUSE_LITE
        char err_msg[MUSE_MSG_LEN_MAX] = {'\0',};
+#endif
        ms_connection_t *connection = NULL;
        ms_system_t *system = NULL;
 
@@ -1193,6 +1195,9 @@ void ms_check_cpu_memory(void)
                memory_threshold = ms_config_get_memory_threshold();
                cpu_threshold = ms_config_get_cpu_threshold();
 
+               LOGW("[%d] Proportional set size %d ( > %d ? ) KB (CPU %d %%)", muse_server->pid, used_pss, memory_threshold, cpu_usage);
+
+#ifndef MUSE_LITE
                if (used_pss >= memory_threshold) {
                        ms_log_process_info(muse_server->pid);
 
@@ -1205,6 +1210,7 @@ void ms_check_cpu_memory(void)
 
                if (cpu_usage > cpu_threshold)
                        ms_system_stat_attach(system);
+#endif
 
                muse_core_remove_all_fd_table();
        } else {