From 0935afb947e520fd8e41ebfc311888eafc6afdc0 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 4 Sep 2020 10:44:17 +0530 Subject: rpcsvc: Add latency tracking for rpc programs Added latency tracking of rpc-handling code. With this change we should be able to monitor the amount of time rpc-handling code is consuming for each of the rpc call. fixes: #1466 Change-Id: I04fc7f3b12bfa5053c0fc36885f271cb78f581cd Signed-off-by: Pranith Kumar K --- xlators/protocol/server/src/server.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/protocol') diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index 48f4d0a7f87..721968004a0 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -267,6 +267,8 @@ server_priv(xlator_t *this) gf_proc_dump_build_key(key, "server", "total-bytes-write"); gf_proc_dump_write(key, "%" PRIu64, total_write); + rpcsvc_statedump(conf->rpc); + ret = 0; out: if (ret) -- cgit