Deal with the new Invoker.UnitProfile when reporting profiling statistics,

changed the output format to be the same as the one for DObjectManager
profiling output.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3309 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-01-24 17:17:27 +00:00
parent be93e5eb12
commit dd04679568
@@ -65,12 +65,14 @@ public class PresentsInvoker extends Invoker
buffer.append("- Units executed: ").append(_unitsRun).append("\n");
_unitsRun = 0;
for (Iterator iter = _tracker.keySet().iterator(); iter.hasNext(); ) {
Class key = (Class)iter.next();
Histogram histo = (Histogram)_tracker.get(key);
buffer.append(" ");
buffer.append(StringUtil.shortClassName(key)).append(": ");
buffer.append(histo.summarize()).append("\n");
histo.clear();
Object key = iter.next();
UnitProfile profile = (UnitProfile)_tracker.get(key);
if (key instanceof Class) {
key = StringUtil.shortClassName((Class)key);
}
buffer.append(" ").append(key).append(" ");
buffer.append(profile).append("\n");
profile.clear();
}
}