[jboss-cvs] JBoss Profiler SVN: r447 - trunk/jvmti-lib/native-tests/org/jboss/profiler/jvmtitest.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 14 12:55:40 EDT 2008
Author: clebert.suconic at jboss.com
Date: 2008-05-14 12:55:40 -0400 (Wed, 14 May 2008)
New Revision: 447
Modified:
trunk/jvmti-lib/native-tests/org/jboss/profiler/jvmtitest/JVMTITest.java
Log:
Few tests on profiling
Modified: trunk/jvmti-lib/native-tests/org/jboss/profiler/jvmtitest/JVMTITest.java
===================================================================
--- trunk/jvmti-lib/native-tests/org/jboss/profiler/jvmtitest/JVMTITest.java 2008-05-14 16:55:15 UTC (rev 446)
+++ trunk/jvmti-lib/native-tests/org/jboss/profiler/jvmtitest/JVMTITest.java 2008-05-14 16:55:40 UTC (rev 447)
@@ -480,12 +480,42 @@
}
+ public void testExecution()
+ {
+ JVMTIInterface interfaceJVMTI = new JVMTIInterface();
+ interfaceJVMTI.startMeasure("/tmp", "test", ".data");
+ System.out.println("Hello from java");
+ for (int i=0; i<1000; i++)
+ {
+ dumbMethod(1);
+ }
+ System.out.println("Recursive now");
+
+ dumbMethod(1000);
+ }
+
+ public void dumbMethod(int i)
+ {
+ if (--i > 0)
+ {
+ dumbMethod(i);
+ }
+ }
+
public static void main(String arg[])
{
JVMTITest test = new JVMTITest();
try
{
+ test.testExecution();
+ } catch (Throwable e1)
+ {
+ e1.printStackTrace();
+ }
+
+ /*try
+ {
test.testGetObjects();
} catch (Throwable e1)
{
@@ -499,7 +529,7 @@
} catch (Throwable e)
{
e.printStackTrace();
- }
+ } */
}
}
More information about the jboss-cvs-commits
mailing list