From cacc168520f742ae7a45fa4d7198d6958ae5b9a4 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 22 Jan 2009 19:24:31 +0000 Subject: More latency metrics. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736752 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/OutputInterceptor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/cluster/OutputInterceptor.cpp') diff --git a/cpp/src/qpid/cluster/OutputInterceptor.cpp b/cpp/src/qpid/cluster/OutputInterceptor.cpp index 472fb2e6c0..dbed75beed 100644 --- a/cpp/src/qpid/cluster/OutputInterceptor.cpp +++ b/cpp/src/qpid/cluster/OutputInterceptor.cpp @@ -46,7 +46,7 @@ void OutputInterceptor::send(framing::AMQFrame& f) { } if (!parent.isCatchUp()) sent += f.encodedSize(); - QPID_LATENCY_RECORD("on write queue", f); + QPID_LATENCY_RECORD("up to write queue", f); } void OutputInterceptor::activateOutput() { @@ -79,6 +79,7 @@ bool OutputInterceptor::doOutput() { // void OutputInterceptor::deliverDoOutput(size_t requested) { QPID_LATENCY_RECORD("deliver do-output", *this); + QPID_LATENCY_CLEAR(*this); size_t buf = getBuffered(); if (parent.isLocal()) writeEstimate.delivered(requested, sent, buf); // Update the estimate. -- cgit v1.2.1