forked from I2P_Developers/i2p.i2p
add a stat to see if getBids() is taking too long
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user