de.tsl2.nano.core.execution.Profiler.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
???? =?
java/lang/Object ()V java/util/HashMap
$de/tsl2/nano/core/execution/Profiler profObjects Ljava/util/Map;
java/util/Calendar getInstance ()Ljava/util/Calendar; cal Ljava/util/Calendar; java/text/SimpleDateFormat HH:mm:ss.SSS
(Ljava/lang/String;)V " # $ sdf Ljava/text/SimpleDateFormat;
& ' ( getTimeZone ()Ljava/util/TimeZone;
* + , - . java/util/TimeZone setRawOffset (I)V 0 1 2 self &Lde/tsl2/nano/core/execution/Profiler;
5 6 7 LOG Lorg/apache/commons/logging/Log; 9 preparing a hot working cpu... ; < = > ? org/apache/commons/logging/Log info (Ljava/lang/Object;)V ?
C D E F G java/lang/Thread sleep (J)V '
K L M workLoop (J)J O java/lang/InterruptedException
Q R S T U "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;????????
Y Z [ \ ] *de/tsl2/nano/core/execution/ProfilerObject
fastConstruct .()Lde/tsl2/nano/core/execution/ProfilerObject;
_ ` a getClazz %(Ljava/lang/Object;)Ljava/lang/Class; Y c d e clazz Ljava/lang/Class; Y g h i name Ljava/lang/String;
k l m n o java/lang/System currentTimeMillis ()J Y q r s start J
u v o
getUsedMem Y x y s startMem
Y { | } hashCode ()I
? ? ? ? java/lang/Integer valueOf (I)Ljava/lang/Integer; ? ? ? ? ?
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
? ? G setTimeInMillis ? O
==============================================================================
? ? log
? ? ? ? ? java/lang/Class
getSimpleName ()Ljava/lang/String;
? ? ? getTime ()Ljava/util/Date;
? ? ? format $(Ljava/util/Date;)Ljava/lang/String; ? ? ? ? makeConcatWithConstants K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String; ? N==============================================================================
? ? ? ? ? java/lang/Runtime
getRuntime ()Ljava/lang/Runtime;
? ? ? o totalMemory
? ? ? o
freeMemory
? ? ? getClass ()Ljava/lang/Class;
? ? ? ending ((Ljava/lang/Object;Ljava/lang/String;Z)J
Y ? ? ? hash &(Ljava/lang/Class;Ljava/lang/String;)I ? ? ? ? remove &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? get Y ? ? s end Y ? ? s endMem ? k ? ? ? out Ljava/io/PrintStream;
? ? ? ? java/io/PrintStream println
? ? o prepareProcessor
? ? ? si (()Lde/tsl2/nano/core/execution/Profiler;
? ? ? starting '(Ljava/lang/Object;Ljava/lang/String;)J ? ? ? ? java/lang/Runnable run
? ? ?
? ? ? compareTests ;(Ljava/lang/String;ZJ[Ljava/lang/Runnable;)Ljava/util/List; ? java/util/ArrayList
? ? . ? ? ? (I)Ljava/lang/String;
? ? ?
stressTest *(Ljava/lang/String;JLjava/lang/Runnable;)J
? ? ? ? ? java/lang/Long (J)Ljava/lang/Long; ? ? java/util/List add (Ljava/lang/Object;)Z ? (IJ)Ljava/lang/String; java/util/Date ? ?
(I)Ljava/lang/Object;
?
o longValue
G ? '(ILjava/lang/String;)Ljava/lang/String;
checkComparedTests ((Ljava/util/List;[Ljava/lang/Runnable;)V
? (Ljava/util/Collection;)V
java/util/Collections sort (Ljava/util/List;)V
?!"# toArray ()[Ljava/lang/Object; ?!
&'()* java/util/Arrays equals )([Ljava/lang/Object;[Ljava/lang/Object;)Z
,-./0 !de/tsl2/nano/core/util/StringUtil toString '(Ljava/lang/Object;I)Ljava/lang/String; 2 ?3 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
Q567 assertion )(ZLjava/lang/String;[Ljava/lang/Object;)V?? : standard-construction< &de/tsl2/nano/core/execution/Profiler$1
; ? fast-constructionA &de/tsl2/nano/core/execution/Profiler$2
@ ?DEF values ()Ljava/util/Collection;HIJKL java/util/Collection iterator ()Ljava/util/Iterator;NOPQR java/util/Iterator hasNext ()ZNTUV next ()Ljava/lang/Object;
X)
ZX[ java/lang/String ] ?^ J(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ?`a clear
cdefg de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; Signature PLjava/util/Map; Code LineNumberTable LocalVariableTable this
StackMapTable j e Ljava/lang/InterruptedException; i I steps classOrInstance Ljava/lang/Object; po ,Lde/tsl2/nano/core/execution/ProfilerObject; clean Z text
test_count action Ljava/lang/Runnable; :(Ljava/lang/String;J[Ljava/lang/Runnable;)Ljava/util/List; description actions [Ljava/lang/Runnable; L(Ljava/lang/String;J[Ljava/lang/Runnable;)Ljava/util/List; checkDurationOrder durations Ljava/util/List; LocalVariableTypeTable "Ljava/util/List; M(Ljava/lang/String;ZJ[Ljava/lang/Runnable;)Ljava/util/List; sortedDurations Ljava/util/ArrayList; 'Ljava/util/ArrayList; :(Ljava/util/List;[Ljava/lang/Runnable;)V main ([Ljava/lang/String;)V args [Ljava/lang/String;
TEST_COUNT summarize
testObject totalAmount
SourceFile
Profiler.java NestMembers BootstrapMethods?
??? ?? $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;? '==>> starting : '' at used mem: kb? .<<== ending : '' duration: diff mem: kb? test ? Summary of tests with counts? test : ? 8the expected duration (in ms) order was: -> but was: ? /total durations of testObject= and name= is: InnerClasses? %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup !
1 2 h i # $ 6 7 j m /*? *? Y? ?
*? ? *? Y? ? !*? ? %? )? k H = ? @ # I . Jl /m 2 ? ? j = ? /?
? Y? 3? /? /? k R S Un ? o j ? $? 48? : @? B* H? J@?L+? PW V?
N k ]
_ ` a b c dl o s pq $m 2 n Z N L M j ? >6??? `>?????? k m n
o n ql * rs m 2 t s os n
? ? ? ? j ) z? XN-+?
+? ^? ? b-,? f-? j? p-? t? w*?
-? z? ~-? ? W*? -? p? ??? ?-? b? ?,*? !*? ? ?? ?-? w ?m? ? ? ??? ?-? p? k 6
| } ~ ! ? ( ? : ? E ? J ? Z ? m ? p ? u ?l * zm 2 zuv z h i vwx n 1 ? Z Y Y? Z Y Y ? v o j &