Instead of relying on toString() returning something sensible, we go back
to using the class name but get the appropriate class in the case of RunQueue queued intervals. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3695 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -32,6 +32,7 @@ import sun.misc.Perf;
|
|||||||
import com.samskivert.util.AuditLogger;
|
import com.samskivert.util.AuditLogger;
|
||||||
import com.samskivert.util.HashIntMap;
|
import com.samskivert.util.HashIntMap;
|
||||||
import com.samskivert.util.Histogram;
|
import com.samskivert.util.Histogram;
|
||||||
|
import com.samskivert.util.Interval;
|
||||||
import com.samskivert.util.Invoker;
|
import com.samskivert.util.Invoker;
|
||||||
import com.samskivert.util.Queue;
|
import com.samskivert.util.Queue;
|
||||||
import com.samskivert.util.RunQueue;
|
import com.samskivert.util.RunQueue;
|
||||||
@@ -304,10 +305,10 @@ public class PresentsDObjectMgr
|
|||||||
// do some jiggery pokery to get more fine grained profiling
|
// do some jiggery pokery to get more fine grained profiling
|
||||||
// details on certain "popular" unit types
|
// details on certain "popular" unit types
|
||||||
if (unit instanceof Runnable) {
|
if (unit instanceof Runnable) {
|
||||||
cname = unit.toString();
|
cname = StringUtil.shortClassName(unit);
|
||||||
int laidx = cname.lastIndexOf("@");
|
} else if (unit instanceof Interval.RunQueueRunnable) {
|
||||||
cname = (laidx == -1) ? cname : cname.substring(0, laidx);
|
Interval ival = ((Interval.RunQueueRunnable)unit).getInterval();
|
||||||
cname = StringUtil.shortClassName(cname);
|
cname = StringUtil.shortClassName(ival);
|
||||||
} else if (unit instanceof InvocationRequestEvent) {
|
} else if (unit instanceof InvocationRequestEvent) {
|
||||||
InvocationRequestEvent ire = (InvocationRequestEvent)unit;
|
InvocationRequestEvent ire = (InvocationRequestEvent)unit;
|
||||||
Class c = PresentsServer.invmgr.getDispatcherClass(
|
Class c = PresentsServer.invmgr.getDispatcherClass(
|
||||||
|
|||||||
Reference in New Issue
Block a user