You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/09/30 08:00:06 UTC
svn commit: r700353 -
/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/StatefulCommand.java
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;