From 289723560948e8ec422e659febc73a766845f9ed Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 31 Aug 2017 15:52:57 -0700 Subject: Expose stats into qps_driver --- test/cpp/qps/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/cpp/qps/client.h') diff --git a/test/cpp/qps/client.h b/test/cpp/qps/client.h index b1d90aa9c4..7fbaf63492 100644 --- a/test/cpp/qps/client.h +++ b/test/cpp/qps/client.h @@ -34,6 +34,7 @@ #include "src/proto/grpc/testing/payloads.pb.h" #include "src/proto/grpc/testing/services.grpc.pb.h" +#include "src/cpp/util/core_stats.h" #include "test/cpp/qps/histogram.h" #include "test/cpp/qps/interarrival.h" #include "test/cpp/qps/usage_timer.h" @@ -172,6 +173,9 @@ class Client { timer_result = timer_->Mark(); } + grpc_stats_data core_stats; + grpc_stats_collect(&core_stats); + ClientStats stats; latencies.FillProto(stats.mutable_latencies()); for (StatusHistogram::const_iterator it = statuses.begin(); @@ -184,6 +188,7 @@ class Client { stats.set_time_system(timer_result.system); stats.set_time_user(timer_result.user); stats.set_cq_poll_count(poll_count); + CoreStatsToProto(core_stats, stats.mutable_core_stats()); return stats; } -- cgit v1.2.3