Author: hossman Date: Mon Jul 28 15:50:08 2008 New Revision: 680553 URL: http://svn.apache.org/viewvc?rev=680553&view=rev Log: return lowest level stats as well as computed stats
Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/RequestHandlerBase.java Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/RequestHandlerBase.java URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/RequestHandlerBase.java?rev=680553&r1=680552&r2=680553&view=diff ============================================================================== --- lucene/solr/trunk/src/java/org/apache/solr/handler/RequestHandlerBase.java (original) +++ lucene/solr/trunk/src/java/org/apache/solr/handler/RequestHandlerBase.java Mon Jul 28 15:50:08 2008 @@ -165,9 +165,11 @@ public NamedList getStatistics() { NamedList lst = new SimpleOrderedMap(); + lst.add("handlerStart",handlerStart); lst.add("requests", numRequests); lst.add("errors", numErrors); lst.add("timeouts", numTimeouts); + lst.add("totalTime",totalTime); lst.add("avgTimePerRequest", (float) totalTime / (float) this.numRequests); lst.add("avgRequestsPerSecond", (float) numRequests*1000 / (float)(System.currentTimeMillis()-handlerStart)); return lst;