[jboss-svn-commits] JBL Code SVN: r34425 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jul 30 11:59:40 EDT 2010


Author: whitingjr
Date: 2010-07-30 11:59:39 -0400 (Fri, 30 Jul 2010)
New Revision: 34425

Modified:
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/WarmedUpTest.java
Log:
Changed the profiling api. CPU profiling is controlled using trigger.

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/WarmedUpTest.java
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/WarmedUpTest.java	2010-07-30 15:58:35 UTC (rev 34424)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/WarmedUpTest.java	2010-07-30 15:59:39 UTC (rev 34425)
@@ -68,15 +68,16 @@
 
    @Test(groups = "integration-persistence", dependsOnGroups = "integration-warmup")
    @Parameters(
-   { "test_count", "concurrency_count"})
+   { "test_count", "concurrency_count", "profile_dump_file"})
    public void profiledTest(final String testCountConfig,
-         final String concurrentCountConfig)
+         final String concurrentCountConfig, final String dumpFile)
       throws Exception
    {
       NDC.push("profiled");
       ExecuteWatchdog watchdog = null;
       try
       {
+         getProfiler().dumpSnapshot(dumpFile);
          /* Start asynchronously a system process to capture system 
           * performance metrics during execution. */
          CommandLine commandLine = CommandLine.parse("dstat");
@@ -96,8 +97,8 @@
 
          executor.setStreamHandler(handler);
          executor.execute(commandLine, new DstatHandler());
-         getProfiler().start();
-         getProfiler().startCPURecording();
+         //getProfiler().start();
+         //getProfiler().startCPURecording();
       }
       catch (Exception e)
       {



More information about the jboss-svn-commits mailing list