[jboss-svn-commits] JBL Code SVN: r36328 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/profiler/jbossprofiler.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Dec 9 14:06:55 EST 2010
Author: whitingjr
Date: 2010-12-09 14:06:55 -0500 (Thu, 09 Dec 2010)
New Revision: 36328
Modified:
labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/profiler/jbossprofiler/ant-profiler.xml
Log:
Fixed targets to extract profiling data.
Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/profiler/jbossprofiler/ant-profiler.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/profiler/jbossprofiler/ant-profiler.xml 2010-12-09 19:06:21 UTC (rev 36327)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/profiler/jbossprofiler/ant-profiler.xml 2010-12-09 19:06:55 UTC (rev 36328)
@@ -14,6 +14,8 @@
<project name="JBoss TM: JProfiler JBossProfiler Import ">
+ <taskdef classname="au.com.Langdale.styler.StylerTask" name="styler"/>
+
<path id="profiler.classpath">
<fileset dir="lib/profilerdrivers/${profiler}">
<include name="jboss-profiler.jar"/>
@@ -60,6 +62,7 @@
<condition property="snapshot.file.isAvailable">
<available file="${profiler.snapshot.filename}"/>
</condition>
+
<echo message="status of snapshot availability [${snapshot.file.isAvailable}][${profiler.snapshot.filename}]"></echo>
<copy file="src/main/resources/properties/profiler/${profiler}/configuration.properties" todir="build/classes">
<filterchain>
@@ -74,8 +77,8 @@
<copy todir="${output.directory}" file="${profiler.snapshot.filename}"/>
<pathconvert property="output.profiler.snapshot.filename" refid="output.path.jps.file" setonempty="false"/>
<echo message="new location [${output.profiler.snapshot.filename}]"/>
- <java classname="org.jboss.profiler.client.cmd.Client" classpathref="run.classpath" fork="true">
- <jvmarg value="-Djboss-profiler-client.properties=./build/classes/client.properties" />
+ <java classname="org.jboss.profiler.client.cmd.Client" classpathref="run.classpath" fork="true" dir="${output.directory}">
+ <jvmarg value="-Djboss-profiler-client.properties=./build/classes/profile.properties" />
<jvmarg value="-Dlog4j.configuration=log4j.xml" />
<jvmarg value="-Xmx512m" />
<arg value="load"/>
@@ -85,7 +88,22 @@
<!-- Create several properties with the value for the percentage. -->
<target name="extract-timings">
-
+ <path id="methods-path">
+ <fileset dir="${output.directory}">
+ <include name="**/methods.html"/>
+ </fileset>
+ </path>
+ <property name="methods-file.path " refid="methods-path"/>
+ <echo message="new directory path [${methods-file.path}]"/>
+ <styler>
+ <!--fileset file="${output.directory}">
+ <include name="**/methods.html"/>
+ </fileset-->
+ <input file="${methods-file.path}"/>
+ <output dir="${output.directory}"/>
+ <transform file="src/main/resources/xsl/profiler/jbossprofiler.xsl"/>
+ </styler>
+
</target>
</project>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list