curcuru     02/03/26 11:55:19

  Modified:    test/java/src/org/apache/qetest ExecTestlet.java
  Log:
  Also log perf element if we isExternal is false (slightly separate
  logic here means the perf log is in a different place)
  
  Revision  Changes    Path
  1.3       +10 -1     
xml-xalan/test/java/src/org/apache/qetest/ExecTestlet.java
  
  Index: ExecTestlet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/ExecTestlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExecTestlet.java  26 Mar 2002 13:20:51 -0000      1.2
  +++ ExecTestlet.java  26 Mar 2002 19:55:19 -0000      1.3
  @@ -76,7 +76,7 @@
    * just construct a class and call main().
    *
    * @author [EMAIL PROTECTED]
  - * @version $Id: ExecTestlet.java,v 1.2 2002/03/26 13:20:51 curcuru Exp $
  + * @version $Id: ExecTestlet.java,v 1.3 2002/03/26 19:55:19 curcuru Exp $
    */
   public abstract class ExecTestlet extends FileTestlet
   {
  @@ -190,6 +190,15 @@
               final long startTime = System.currentTimeMillis();
               main.invoke(null, mainArgs);
               timeExec = System.currentTimeMillis() - startTime;
  +
  +            // Also log out a perf element by default
  +            Hashtable attrs = new Hashtable();
  +            attrs.put("idref", datalet.getInput());
  +            attrs.put("program", getProgram());
  +            attrs.put("isExternal", "false");
  +            attrs.put("timeExec", new Long(timeExec));
  +            logger.logElement(Logger.STATUSMSG, "perf", attrs, 
"Performance/timing info");
  +            attrs = null;
           }
           catch (Throwable t)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to