g_tree_foreach(processes, __processes_tree_foreach_print, NULL);
}
+#if STC_DEBUG_LOG
static gboolean __apps_tree_foreach_print(gpointer key, gpointer value,
gpointer data)
{
__processes_tree_printall(app_value->processes);
return FALSE;
}
+#endif
#if 0
static void __apps_tree_printall(void)
stc_app_value_s *app_value = (stc_app_value_s *)value;
if (!g_tree_remove(app_value->processes, context->proc_key)) {
+#if STC_DEBUG_LOG
STC_LOGD("key not found");
+#endif
return FALSE;
}
app_value->counter.in_bytes = context->bytes;
g_system->apps_tree_updated = TRUE;
+#if STC_DEBUG_LOG
__apps_tree_foreach_print(app_key, app_value, NULL);
+#endif
break;
case NFACCT_COUNTER_OUT:
app_value->data_usage.out_bytes += context->bytes;
app_value->counter.out_bytes = context->bytes;
g_system->apps_tree_updated = TRUE;
+#if STC_DEBUG_LOG
__apps_tree_foreach_print(app_key, app_value, NULL);
+#endif
break;
default:
STC_LOGE("unknown iotype");