
com.google.javascript.jscomp.PerformanceTracker.class Maven / Gradle / Ivy
The newest version!
???? 3M
}67
6 89 : ; < = > ? @ A B C D E F G H I J K LM
6 NO
6 P ?QR
ST
UV W X Y UZ [ \]
)^_`a
?b
c
d_e )f
Sghi )j )k )?
l )@mn
o
p
q
r
st )G
u
v
wx
wy )z
w{ )| )J )K )L
O}~?????
?
O?
O??
S?
??
??
??
? ?? ?? ??
? ? ?
?
??
??? d?
?? )??
h6h
h?
h?
???
??
??
q?
???
????
w6?
w?
w?
w?????
w????????????
??
?????????
d???
??
??
?????
??
?????
?? Stats InnerClasses DEFAULT_WHEN_SIZE_UNTRACKED I
ConstantValue???? output Ljava/io/PrintStream; jsRoot "Lcom/google/javascript/rhino/Node; externsRoot mode?
TracerMode 9Lcom/google/javascript/jscomp/CompilerOptions$TracerMode;
codeChange +Lcom/google/javascript/jscomp/RecentChange; initAstSize initCodeSize initGzCodeSize startTime J endTime
passesRuntime maxMem runs changes loopRuns loopChanges jsLines jsSources externLines
externSources astSize codeSize
gzCodeSize astDiff diff gzDiff currentPass Ljava/util/Deque; Signature JLjava/util/Deque; summary (Lcom/google/common/collect/ImmutableMap; sLcom/google/common/collect/ImmutableMap; log Ljava/util/List; ILjava/util/List; ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/CompilerOptions$TracerMode;Ljava/io/PrintStream;)V Code LineNumberTable LocalVariableTable this 1Lcom/google/javascript/jscomp/PerformanceTracker; printStream
StackMapTable9??? getCodeChangeHandler 2()Lcom/google/javascript/jscomp/CodeChangeHandler; recordPassStart (Ljava/lang/String;Z)V passName Ljava/lang/String; isOneTime Z recordPassStop (Ljava/lang/String;J)V runtime allocMem logStats 7Lcom/google/javascript/jscomp/PerformanceTracker$Stats;] recordParsingStop :(Lcom/google/javascript/jscomp/PerformanceTracker$Stats;)V estimator BLcom/google/javascript/jscomp/PerformanceTrackerCodeSizeEstimator;? recordOtherPassStop newSize recordInputCount ()V n?
estimateLines %(Lcom/google/javascript/rhino/Node;)I ssf .Lcom/google/javascript/rhino/StaticSourceFile;? bytesToMB (J)I bytes getAllocatedMegabytes ()I javaRuntime Ljava/lang/Runtime;
tracksSize ()Z tracksGzSize
tracksAstSize
getRuntime getSize getGzSize
getAstSize
getChanges RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; getLoopChanges getRuns getLoopRuns getStats *()Lcom/google/common/collect/ImmutableMap; u()Lcom/google/common/collect/ImmutableMap; calcTotalStats stats entry Entry Ljava/util/Map$Entry; LocalVariableTypeTable `Ljava/util/Map$Entry;? populateSummary logStat
tmpSummary Ljava/util/HashMap; ^Ljava/util/HashMap;?? outputTracerReport key e Ljava/io/IOException; statEntries Ljava/util/ArrayList; wLjava/util/ArrayList;>;O??
SourceFile PerformanceTracker.java ? ? )com/google/javascript/jscomp/RecentChange ? ? /com/google/javascript/jscomp/PerformanceTracker ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? java/util/ArrayDeque ? ? java/util/ArrayList ? ?? ? 2PerformanceTracker can't work without tracer data.?????? ? ? ? ? ? ?? ? ? ? ? ? 5com/google/javascript/jscomp/PerformanceTracker$Stats ? ???? toSource??? ???? ?????? ? ? ? ?? %com/google/javascript/jscomp/Compiler parseInputs ? ?
? ? ? ?? ?
? ? ?
?
? com/google/javascript/rhino/Node ? ? 'com/google/javascript/jscomp/SourceFile?? ? ? ? ? ? ? ? ?# ?
java/util/Map$Entry? !" ? ? java/util/HashMap#$%&'( verbose:pretty:all)*+,- 1com/google/javascript/jscomp/PerformanceTracker$1 ?./01
234
TOTAL: java/lang/StringBuilder Start time(ms): 565789 java/lang/Object End time(ms): Wall time(ms): Passes runtime(ms): 5: .Max mem usage (measured after each pass)(MB): #Runs: #Changing runs: #Loopable runs: #Changing loopable runs: !Estimated AST reduction(#nodes): Estimated Reduction(bytes): Estimated GzReduction(bytes): Estimated AST size(#nodes): Estimated Size(bytes): Estimated GzSize(bytes): ;<?=>
Inputs: JS lines: JS sources: Extern lines: Extern sources:
TSummary:
pass,runtime,allocMem,runs,changingRuns,astReduction,reduction,gzReduction
?? java/lang/String %s,%d,%d,%d,%d,%d,%d,%d
@ABCADEFG Log: Ypass,runtime,allocMem,codeChanged,astReduction,reduction,gzReduction,astSize,size,gzSize
%s,%d,%d,%b,%d,%d,%d,%d,%d,%d
HAIJK ? java/io/IOException java/lang/RuntimeException Unreachable. ?>L 7com/google/javascript/jscomp/CompilerOptions$TracerMode java/io/PrintStream @com/google/javascript/jscomp/PerformanceTrackerCodeSizeEstimator java/util/Iterator ,com/google/javascript/rhino/StaticSourceFile [Ljava/lang/Object; OFF $com/google/common/base/Preconditions
checkArgument (ZLjava/lang/Object;)V java/lang/System currentTimeMillis ()J out java/util/Deque push (Ljava/lang/Object;)V equals (Ljava/lang/Object;)Z reset pop ()Ljava/lang/Object; pass
checkState (Z)V java/util/List add hasCodeChanged %com/google/javascript/jscomp/NodeUtil countAstSize estimate g(Lcom/google/javascript/rhino/Node;Z)Lcom/google/javascript/jscomp/PerformanceTrackerCodeSizeEstimator; getCodeSize size getZippedCodeSize gzSize children ()Ljava/lang/Iterable; java/lang/Iterable iterator ()Ljava/util/Iterator; hasNext next isScript getStaticSourceFile 0()Lcom/google/javascript/rhino/StaticSourceFile; getNumLines java/lang/Runtime ()Ljava/lang/Runtime; totalMemory
freeMemory RAW_SIZE ALL TIMING_ONLY &com/google/common/collect/ImmutableMap entrySet *()Lcom/google/common/collect/ImmutableSet; &com/google/common/collect/ImmutableSet 2()Lcom/google/common/collect/UnmodifiableIterator;
java/util/Map getValue java/lang/Math max (II)I get &(Ljava/lang/Object;)Ljava/lang/Object; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; copyOf 9(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap; 'com/google/javascript/jscomp/JvmMetrics maybeWriteJvmMetrics *(Ljava/io/PrintStream;Ljava/lang/String;)V addAll (Ljava/util/Collection;)Z 4(Lcom/google/javascript/jscomp/PerformanceTracker;)V java/util/Collections sort )(Ljava/util/List;Ljava/util/Comparator;)V com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (I)Ljava/lang/StringBuilder; join K(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/String; print (Ljava/lang/String;)V getKey java/lang/Long valueOf (J)Ljava/lang/Long; java/lang/Integer (I)Ljava/lang/Integer; Dcom/google/javascript/jscomp/parsing/parser/util/format/SimpleFormat format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; java/lang/Boolean (Z)Ljava/lang/Boolean; java/io/FilterOutputStream flush ,com/google/javascript/jscomp/CompilerOptions 1 } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?*? *? Y? ? *? *? *? *? *?
*? *? *?
*? *? *? *? *? *? *? *? *? *? *? *? Y? ? *? Y? ? -? ? ? ? !*? "? #*+? $*,? %*? ? &? ? '*-? (? ? z _ 8 : ; <