From 3d5dd70e7fa01043ab048f23345e48b1a2abdf8b Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 20 Sep 2023 22:04:33 +0800 Subject: 输出每个线程的application metric数量统计 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_statistic.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tsg_statistic.cpp') diff --git a/src/tsg_statistic.cpp b/src/tsg_statistic.cpp index 312ade4..9a05579 100644 --- a/src/tsg_statistic.cpp +++ b/src/tsg_statistic.cpp @@ -6,6 +6,7 @@ #include #include +#include "tsg_stat.h" #include "tsg_log.h" #include "tsg_entry.h" #include "tsg_send_log.h" @@ -340,6 +341,8 @@ int tsg_set_application_metrics(const struct streaminfo *a_stream, const char *l thread_seq ); + tsg_stat_application_metrics_count_set(thread_seq, fieldstat_dynamic_read_htable_item_cnt(g_tsg_statis_para.fs_application.metrics_handle, thread_seq)); + return 0; } -- cgit v1.2.3