Skip logging thread information by performance at licensing tv 19/314719/3 accepted/tizen/8.0/unified/20240724.010416
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 18 Jul 2024 05:57:39 +0000 (14:57 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 18 Jul 2024 08:13:06 +0000 (17:13 +0900)
Change-Id: I5e6f82d727c0b9bf56da943361e85185f2e4cb3f

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 03d066f446638c3a46c9374726bfd87e83b59b34..bf976b388e968b50b7825689bd564ff79abca812 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,7 @@ void ms_check_cpu_memory(void)
 
                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 +1208,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 {