summaryrefslogtreecommitdiffstats
path: root/rnprotocol
diff options
context:
space:
mode:
authorPeter Baumann <p.baumann@jacobs-university.de>2010-07-27 08:59:55 +0200
committerwww-data <www-data@ubuntu.localdomain>2010-07-30 11:08:03 +0200
commit437ff942525f86a36655519cea0f5a03da319cd7 (patch)
treee8b29697ca4561311fbec58d5f71f7ee521c2533 /rnprotocol
parent18b61341d3c0f597ef71af2dc33769277defe9d5 (diff)
downloadrasdaman-upstream-437ff942525f86a36655519cea0f5a03da319cd7.tar.gz
rasdaman-upstream-437ff942525f86a36655519cea0f5a03da319cd7.tar.xz
rasdaman-upstream-437ff942525f86a36655519cea0f5a03da319cd7.zip
PB: improved benchmark output
Diffstat (limited to 'rnprotocol')
-rw-r--r--rnprotocol/rnpservercomm.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/rnprotocol/rnpservercomm.cc b/rnprotocol/rnpservercomm.cc
index 677cf4e..353552d 100644
--- a/rnprotocol/rnpservercomm.cc
+++ b/rnprotocol/rnpservercomm.cc
@@ -54,7 +54,6 @@ and -DCOMPDATE="\"$(COMPDATE)\"" when compiling
#include "srvrasmgrcomm.hh"
#include "server/rasserver_entry.hh"
-#include "time/akgtime.hh"
#include "debug-srv.hh"
@@ -100,11 +99,10 @@ RnpRasDaManComm::~RnpRasDaManComm() throw()
// we need our implementation because of r_Error, but we will go for the default when r_Error is AkgException
void RnpRasDaManComm::processRequest(CommBuffer *receiverBuffer, CommBuffer *transmiterBuffer, RnpTransport::CarrierProtocol protocol, RnpServerJob *callingJob) throw()
{
+ RMTimer requestTime("RnpRasDaManComm","request");
+
ENTER( "RnpRasDaManComm::processRequest, at " << now() << ", client=" << callingJob->getClientHostAddress().getStringAddress() );
- RMInit::logOut << now() << " request from " << callingJob->getClientHostAddress().getStringAddress() << endl;
-
- BenchmarkTimer bmt("request time");
- bmt.start();
+ RMInit::logOut << endl << now() << " request from " << callingJob->getClientHostAddress().getStringAddress() << endl;
decoder.decode(receiverBuffer);
RnpQuark destServerType = decoder.getDestinationServerType();
@@ -197,9 +195,7 @@ void RnpRasDaManComm::processRequest(CommBuffer *receiverBuffer, CommBuffer *tra
}
encoder.endMessage();
- bmt.stop();
-
- RMInit::logOut << now() << " request completed; " << bmt << endl << endl;
+ RMInit::logOut << now() << " request completed in " << requestTime.getTime() << " usecs." << endl;
LEAVE( "RnpRasDaManComm::processRequest" );
}