So I think I'm managed to make an example that is working correctly even for reentrance. It does complicate the script a little bit though.
http://www.osdev.org/dtrace/hotspot_extras/j_calltime2.d Top 10 inclusive method elapsed times (us), PID TYPE TOTAL NAME 1683 method 2370475 sun/misc/Launcher$ExtClassLoader.getExtClassLoader()Lsun/misc/Launcher$ExtClassLoader; 1683 method 2568302 sun/misc/Launcher.<init>()V 1683 method 2570196 sun/misc/Launcher.<clinit>()V 1683 method 2576193 java/lang/ClassLoader.initSystemClassLoader()V 1683 method 2576928 java/lang/ClassLoader.getSystemClassLoader()Ljava/lang/ClassLoader; 1683 method 3252744 java/security/AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object; 1683 method 6028414 Problem.action(Ljava/lang/String;)V 1683 method 8037978 Problem.action(I)V 1683 method 10047762 java/lang/Thread.sleep(J)V 1683 method 10068908 Problem.main([Ljava/lang/String;)V -- This message posted from opensolaris.org _______________________________________________ dtrace-discuss mailing list [email protected]
