add a stat to see if getBids() is taking too long

This commit is contained in:
zzz
2010-12-04 18:41:12 +00:00
parent a1c69082e2
commit 3a05abe556

View File

@@ -45,6 +45,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
_context = context;
_log = _context.logManager().getLog(CommSystemFacadeImpl.class);
_manager = null;
_context.statManager().createRateStat("transport.getBidsJobTime", "How long does it take?", "Transport", new long[] { 10*60*1000l });
startGeoIP();
}
@@ -131,7 +132,9 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
public void processMessage(OutNetMessage msg) {
//GetBidsJob j = new GetBidsJob(_context, this, msg);
//j.runJob();
long before = _context.clock().now();
GetBidsJob.getBids(_context, this, msg);
_context.statManager().addRateData("transport.getBidsJobTime", _context.clock().now() - before, 0);
}
@Override