From 93a4558dddbea78a51171b2bf92e37da3ffb40dd Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Thu, 10 Jul 2014 12:49:53 +0530 Subject: client/rpc: Add ping and msgs stats This can be seen as below, ># cat $META/graphs/active/vol-client-0/private |grep ping_msgs_sent ping_msgs_sent = 2 ># cat $META/graphs/active/vol-client-0/private |grep "^msgs_sent" msgs_sent = 13 where $META is //.meta Change-Id: I2107ec2b045bac701377760635e18758adb943a3 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/8285 Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee Reviewed-by: Anand Avati --- xlators/protocol/client/src/client.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/protocol/client/src/client.c') diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index 25565925a5d..a0096981f54 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -2764,6 +2764,10 @@ client_priv_dump (xlator_t *this) gf_proc_dump_write("total_bytes_written", "%"PRIu64, conf->rpc->conn.trans->total_bytes_write); + gf_proc_dump_write("ping_msgs_sent", "%"PRIu64, + conf->rpc->conn.pingcnt); + gf_proc_dump_write("msgs_sent", "%"PRIu64, + conf->rpc->conn.msgcnt); } pthread_mutex_unlock(&conf->lock); -- cgit