[jboss-svn-commits] JBL Code SVN: r30388 - labs/jbosstm/workspace/whitingjr/trunk/performance.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Nov 30 04:24:21 EST 2009
Author: whitingjr
Date: 2009-11-30 04:24:21 -0500 (Mon, 30 Nov 2009)
New Revision: 30388
Modified:
labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml
Log:
Added profile data processing to generate categorised results..
Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml 2009-11-30 09:23:35 UTC (rev 30387)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml 2009-11-30 09:24:21 UTC (rev 30388)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<project name="JBoss TM performance comparison project" default="profile" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+<project name="JBoss TM performance comparison project" default="categorise" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<!--
This project executes the Hibernate sample application Caveat Emptor. There are two versions
and this project uses the version based on JPA. By running the sample test case and additional
@@ -40,8 +40,8 @@
-->
<property name="build.classes.dir" value="build/classes" />
<property name="test.output.dir" value="target" />
-
- <property file="build.properties"/>
+
+ <property file="build.properties" />
<property name="required-args" value="-Dtransaction.strategy=value -Ddb.installation=value -Ddb.vendor=value -Djdbc-datasource=value" />
<property name="optional-args" value="-Dtransaction.log.store=value" />
@@ -234,21 +234,23 @@
<mkdir dir="${test.output.dir}" />
<copy file="src/test/resources/testsuite-integration-ejb3.xml" tofile="build/classes/testsuite-integration.xml">
- <filterchain>
- <expandproperties />
- </filterchain>
- </copy>
+ <filterchain>
+ <expandproperties />
+ </filterchain>
+ </copy>
- <copy file="src/main/resources/embedded-jboss-beans.xml" todir="build/classes" />
- <copy file="src/main/resources/ejb3-interceptors-aop.xml" todir="build/classes" />
- <copy file="src/main/resources/jndi.properties" todir="build/classes" />
- <copy file="${properties.home}/transaction-management/${transaction.strategy}/default.persistence.properties" todir="build/classes" />
- <unzip dest="build/classes" src="lib/caveatemptor-jpa.jar">
- <patternset>
- <include name="**/*.class" />
- </patternset>
- </unzip>
- <echo message="Running with hibernate dialect [${hibernate.dialect}] and transaction management [${transaction.strategy}]"/>
+ <copy file="src/main/resources/embedded-jboss-beans.xml" todir="build/classes" />
+ <copy file="src/main/resources/ejb3-interceptors-aop.xml" todir="build/classes" />
+ <copy file="src/main/resources/jndi.properties" todir="build/classes" />
+ <copy file="${properties.home}/transaction-management/${transaction.strategy}/default.persistence.properties" todir="build/classes" />
+ <unzip dest="build/classes" src="lib/caveatemptor-jpa.jar">
+ <patternset>
+ <include name="**/*.class" />
+ </patternset>
+ </unzip>
+ <echo message="Running with hibernate dialect [${hibernate.dialect}] and transaction management [${transaction.strategy}]" />
+ <delete dir="logs/profiled" />
+ <mkdir dir="logs/profiled" />
</target>
<target name="compile" depends="prepare,check-xa-support">
@@ -271,8 +273,17 @@
</target>
<target name="categorise" depends="profile">
-
+ <tstamp />
+ <copy file="logs/profiled/DATE-TIME-profile.xml" tofile="logs/${DSTAMP}-${TSTAMP}-profile-raw.xml"/>
+ <xslt style="src/main/resources/xsl/analyseresults.xsl" in="logs/profiled/DATE-TIME-profile.xml" out="logs/${DSTAMP}-${TSTAMP}-profile-analysis.xml">
+ <outputproperty name="indent" value="yes" />
+ </xslt>
</target>
+ <target name="transform">
+ <xslt style="src/main/resources/xsl/analyseresults.xsl" in="logs/profiled/DATE-TIME-profile.xml" out="logs/onthefly-profile-analysis.xml">
+ <outputproperty name="indent" value="yes" />
+ </xslt>
+ </target>
<target name="usage">
<echo>Usage: ant ${required-args} ${optional-args} (optional) </echo>
More information about the jboss-svn-commits
mailing list