Report the number of intervals registered as well as the number fired in
the reporting interval. Now we can see if we're leaking intervals (which would be double plus ungood). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2769 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: PresentsServer.java,v 1.35 2003/08/08 03:11:55 ray Exp $
|
||||
// $Id: PresentsServer.java,v 1.36 2003/08/13 21:05:28 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
@@ -202,6 +202,12 @@ public class PresentsServer
|
||||
}
|
||||
}
|
||||
|
||||
report.append("* samskivert.IntervalManager:");
|
||||
report.append("- Registered intervals: " +
|
||||
IntervalManager.registeredIntervalCount());
|
||||
report.append("- Fired since last report: " +
|
||||
IntervalManager.getAndClearFiredIntervals());
|
||||
|
||||
// strip off the final newline
|
||||
int blen = report.length();
|
||||
if (report.charAt(blen-1) == '\n') {
|
||||
|
||||
Reference in New Issue
Block a user