diff options
author | paulby <[email protected]> | 2007-04-12 23:37:44 +0000 |
---|---|---|
committer | paulby <[email protected]> | 2007-04-12 23:37:44 +0000 |
commit | b76e210cdf31a63c02d3713f5083ce5d4c5178f0 (patch) | |
tree | 641c68bc844c57e9001231d282262da18bd62b01 | |
parent | 8bf4623d2a7c104dd2d24d852ad722d68a124d74 (diff) |
Stats logger for total execution time of users Behaviors
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@818 ba19aa83-45c5-6ac9-afd3-db810772062c
-rw-r--r-- | src/classes/share/javax/media/j3d/BehaviorScheduler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/BehaviorScheduler.java b/src/classes/share/javax/media/j3d/BehaviorScheduler.java index 3af26ba..340623c 100644 --- a/src/classes/share/javax/media/j3d/BehaviorScheduler.java +++ b/src/classes/share/javax/media/j3d/BehaviorScheduler.java @@ -13,6 +13,7 @@ package javax.media.j3d; import java.util.ArrayList; +import java.util.logging.Level; class BehaviorScheduler extends J3dThread { @@ -210,6 +211,9 @@ class BehaviorScheduler extends J3dThread { behaviorStructure.handleBehaviorPost(); lastStopTime = J3dClock.currentTimeMillis(); + if (MasterControl.isStatsLoggable(Level.FINE)) { + VirtualUniverse.mc.recordTime(MasterControl.TimeType.BEHAVIOR, (lastStopTime-lastStartTime)*1000000); + } } void free() { |