jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1337255 - /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
Date Fri, 11 May 2012 16:18:28 GMT
Author: stefan
Date: Fri May 11 16:18:27 2012
New Revision: 1337255

URL: http://svn.apache.org/viewvc?rev=1337255&view=rev
Log:
copied some mk-related tests in oak-core to oak-mk (cleanup)

Modified:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java

Modified: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java?rev=1337255&r1=1337254&r2=1337255&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
Fri May 11 16:18:27 2012
@@ -16,8 +16,6 @@
  */
 package org.apache.jackrabbit.mk.concurrent;
 
-import org.h2.util.Profiler;
-
 import java.util.ArrayList;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
@@ -49,11 +47,6 @@ public class Concurrent {
         final AtomicReference<Throwable> exception = new AtomicReference<Throwable>();
         ArrayList<Thread> threads = new ArrayList<Thread>();
         final AtomicInteger counter = new AtomicInteger();
-        Profiler p = new Profiler();
-        if (PROFILE) {
-            p.interval = 1;
-            p.startCollecting();
-        }
         for (int i = 0; i < threadCount; i++) {
             Thread t = new Thread("Task " + i) {
                 @Override
@@ -100,10 +93,6 @@ public class Concurrent {
             }
             throw (Error) e;
         }
-        if (PROFILE) {
-            System.out.println(p.getTop(5));
-        }
-
     }
 
     public interface Task {



Mime
View raw message