summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing/itest/performance/performance-test/src
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/performance/performance-test/src')
-rw-r--r--sca-java-2.x/trunk/testing/itest/performance/performance-test/src/test/java/org/apache/tuscany/sca/test/performance/PerformanceTestCase.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/performance/performance-test/src/test/java/org/apache/tuscany/sca/test/performance/PerformanceTestCase.java b/sca-java-2.x/trunk/testing/itest/performance/performance-test/src/test/java/org/apache/tuscany/sca/test/performance/PerformanceTestCase.java
index bd6c349877..454ad9dad8 100644
--- a/sca-java-2.x/trunk/testing/itest/performance/performance-test/src/test/java/org/apache/tuscany/sca/test/performance/PerformanceTestCase.java
+++ b/sca-java-2.x/trunk/testing/itest/performance/performance-test/src/test/java/org/apache/tuscany/sca/test/performance/PerformanceTestCase.java
@@ -56,7 +56,7 @@ import com.sun.management.HotSpotDiagnosticMXBean;
*/
public class PerformanceTestCase {
- public boolean writeHeapDump = false;
+ public boolean writeHeapDump = true;
private static BufferedWriter resultsFile = null;
@@ -81,7 +81,7 @@ public class PerformanceTestCase {
@Test
public void testInstallUninstall() {
- dumpHeapStart();
+ dumpHeapStart("testInstallUninstall");
printRuntimeStats("createRuntime");
@@ -92,6 +92,8 @@ public class PerformanceTestCase {
createNode();
callInstallUninstallRepeatedly(10);
+
+ dumpHeapEnd("testInstallUninstall_postUninstall");
checkCacheStatus();
@@ -113,13 +115,13 @@ public class PerformanceTestCase {
printRuntimeStats("End");
- dumpHeapEnd();
+ dumpHeapEnd("testInstallUninstall_postStop");
}
@Test
public void testCall() {
- dumpHeapStart();
+ dumpHeapStart("TestCall");
printRuntimeStats("createRuntime");
@@ -148,6 +150,7 @@ public class PerformanceTestCase {
//printRuntimeStats("uninstallContribution");
//uninstallContribution();
+ dumpHeapEnd("TestCall_postUninstall");
printRuntimeStats("stopNode");
@@ -167,7 +170,7 @@ public class PerformanceTestCase {
printRuntimeStats("End");
- dumpHeapEnd();
+ dumpHeapEnd("TestCall_postStop");
}
public void checkCacheStatus(){
@@ -208,15 +211,15 @@ public class PerformanceTestCase {
// ============================================================
- public void dumpHeapStart(){
+ public void dumpHeapStart(String name){
if (writeHeapDump){
- dumpHeap("heap_start.bin");
+ dumpHeap("heap_start_" + name + ".bin");
}
}
- public void dumpHeapEnd(){
+ public void dumpHeapEnd(String name){
if (writeHeapDump){
- dumpHeap("heap_stop.bin");
+ dumpHeap("heap_stop_" + name + ".bin");
System.out.println("You can watch a JVM run using \n" +
" jconsole \n" +