MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / mi_list_module_stats

Function mi_list_module_stats

statistics.c:760–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760inline static int mi_list_module_stats(mi_item_t *resp_obj, module_stats *mods)
761{
762 stat_var *stat;
763 int ret = 0;
764
765 if (mods->is_dyn)
766 lock_start_read((rw_lock_t *)collector->rwl);
767
768 for( stat=mods->head ; stat ; stat=stat->lnext) {
769 if (stat_is_hidden(stat))
770 continue;
771 ret = mi_list_stat(resp_obj, &mods->name, stat);
772 if (ret < 0)
773 break;
774 }
775
776 if (mods->is_dyn)
777 lock_stop_read((rw_lock_t *)collector->rwl);
778
779 return ret;
780}
781
782
783static mi_response_t *mi_get_stats(const mi_params_t *params,

Callers 2

w_mi_list_statsFunction · 0.85
w_mi_list_stats_1Function · 0.85

Calls 1

mi_list_statFunction · 0.85

Tested by

no test coverage detected