Use the getIntervalClassName method to identify intervals that have been

cancelled.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6542 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2011-03-22 22:24:34 +00:00
parent 74b598fc02
commit e9bbdd2c4b
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
<dependency> <dependency>
<groupId>com.samskivert</groupId> <groupId>com.samskivert</groupId>
<artifactId>samskivert</artifactId> <artifactId>samskivert</artifactId>
<version>1.1</version> <version>1.3-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -428,6 +428,14 @@ public class PresentsDObjectMgr
} }
} }
/**
* Clears the current set of unit profiles.
*/
public void clearUnitProfiles ()
{
_profiles.clear();
}
/** /**
* Called as a helper for <code>ObjectDestroyedEvent</code> events. It removes the object from * Called as a helper for <code>ObjectDestroyedEvent</code> events. It removes the object from
* the object table. * the object table.
@@ -678,8 +686,8 @@ public class PresentsDObjectMgr
// do some jiggery pokery to get more fine grained profiling details on certain // do some jiggery pokery to get more fine grained profiling details on certain
// "popular" unit types // "popular" unit types
if (unit instanceof Interval.RunBuddy) { if (unit instanceof Interval.RunBuddy) {
Interval ival = ((Interval.RunBuddy)unit).getInterval(); cname = StringUtil.shortClassName(
cname = StringUtil.shortClassName(ival); ((Interval.RunBuddy)unit).getIntervalClassName());
} else if (unit instanceof InvocationRequestEvent) { } else if (unit instanceof InvocationRequestEvent) {
InvocationRequestEvent ire = (InvocationRequestEvent)unit; InvocationRequestEvent ire = (InvocationRequestEvent)unit;
Class<?> c = _invmgr.getDispatcherClass(ire.getInvCode()); Class<?> c = _invmgr.getDispatcherClass(ire.getInvCode());