geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r700353 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java
Date Tue, 30 Sep 2008 06:00:06 GMT
Author: jdillon
Date: Mon Sep 29 23:00:05 2008
New Revision: 700353

URL: http://svn.apache.org/viewvc?rev=700353&view=rev
Log:
Add some timing traces to see how long actions take to create

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java?rev=700353&r1=700352&r2=700353&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java
Mon Sep 29 23:00:05 2008
@@ -25,6 +25,7 @@
 import org.apache.geronimo.gshell.command.CommandResult;
 import org.apache.geronimo.gshell.i18n.MessageSource;
 import org.apache.geronimo.gshell.shell.ShellContext;
+import org.apache.geronimo.gshell.chronos.StopWatch;
 
 /**
  * Stateful {@link org.apache.geronimo.gshell.command.Command} component.
@@ -57,8 +58,10 @@
         CommandAction action = actionHolder.get();
 
         if (action == null) {
+            StopWatch watch = new StopWatch(true);
             action = createAction();
             setAction(action);
+            log.trace("Action created in {}", watch);
         }
 
         return action;



Mime
View raw message