com.google.javascript.jscomp.Tracer.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
what's left. It also checks syntax, variable references, and types, and
warns about common JavaScript pitfalls. It is used in many of Google's
JavaScript apps, including Gmail, Google Web Search, Google Maps, and
Google Docs.
The newest version!
???? 7?
java/lang/Object ()V
#com/google/javascript/jscomp/Tracer type Ljava/lang/String;
com/google/common/base/Strings nullToEmpty &(Ljava/lang/String;)Ljava/lang/String; comment clock 3Lcom/google/javascript/jscomp/Tracer$InternalClock; 1com/google/javascript/jscomp/Tracer$InternalClock currentTimeMillis ()J ! " # startTimeMs J
% & ' ( ) java/lang/Thread
currentThread ()Ljava/lang/Thread; + , - startThread Ljava/lang/Thread; / 0 1 extraTracingStatistics Ljava/util/List; 3 4 5 6 7 java/util/List isEmpty ()Z 3 9 : ; size ()I = > ? extraTracingValues [J 3 A B C iterator ()Ljava/util/Iterator; E F G H 7 java/util/Iterator hasNext E J K L next ()Ljava/lang/Object; N 4com/google/javascript/jscomp/Tracer$TracingStatistic M P Q R start (Ljava/lang/Thread;)J
T U V getThreadTrace 3()Lcom/google/javascript/jscomp/Tracer$ThreadTrace;
X Y Z [ 7 /com/google/javascript/jscomp/Tracer$ThreadTrace
isInitialized X ] ^ _ events Ljava/util/ArrayList;
a 9 b java/util/ArrayList d e f logger Ljava/util/logging/Logger; h i j k l java/util/logging/Level WARNING Ljava/util/logging/Level; n LGiant thread trace. Too many Tracers created. Clearing to avoid memory leak. p java/lang/Throwable
X r s t toString ()Ljava/lang/String;
o v w (Ljava/lang/String;)V
y z { | } java/util/logging/Logger log C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
X ? truncateEvents X ? ? ? outstandingEvents Ljava/util/LinkedHashSet;
? 9 ? java/util/LinkedHashSet ? ?Too many outstanding Tracers. Tracer.stop() is missing or Tracer.stop() is not wrapped in a try/finally block. Clearing to avoid memory leak.
X ? ? truncateOutstandingEvents
X ? ? ?
startEvent ((Lcom/google/javascript/jscomp/Tracer;)V
? ? '(Ljava/lang/String;Ljava/lang/String;)V
? ? ? numDigits (J)I ? java/lang/StringBuilder
?
? ? ? appendSpaces (Ljava/lang/StringBuilder;I)V
? ? ? ? append (J)Ljava/lang/StringBuilder;
? r
? /Tracer.appendSpaces called with large numSpaces
y ? ? w warning ?
? ? ? ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ? ? ? M ? ? 7 enable 3 ? ? ? add (Ljava/lang/Object;)Z 3 ? ? ? lastIndexOf (Ljava/lang/Object;)I 3 ? ? clear
? ? ? ? ? $com/google/common/base/Preconditions
checkState (Z)V ? ? #
stopTimeMs 3 ? ? ? get (I)Ljava/lang/Object; M ? ? R stop
X ? ? ? endEvent )(Lcom/google/javascript/jscomp/Tracer;I)V
? ? ? (I)J ? ? ? makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; X ? ? ? defaultSilenceThreshold I
X 4 ? ? ? E(Lcom/google/javascript/jscomp/Tracer$ThreadTrace;)Ljava/lang/String;
o
? ? clearThreadTrace
X ? ? init
? ? initCurrentThreadTrace
? ? ? setDefaultSilenceThreshold (I)V h ? ? l INFO ? cTracer log requested for this thread but was not initialized using Tracer.initCurrentThreadTrace(). ? timers:
{0}
? t getCurrentThreadTraceReport
y | @(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
logCurrentThreadTrace
defaultPrettyPrint Z
typeToCountMap 9Lcom/google/javascript/jscomp/Tracer$AtomicTracerStatMap; 7com/google/javascript/jscomp/Tracer$AtomicTracerStatMap
typeToSilentMap
typeToTimeMap
getMap ()Ljava/util/Map; X stats Ljava/util/Map;!"# ?$
java/util/Map &(Ljava/lang/Object;)Ljava/lang/Object;& (com/google/javascript/jscomp/Tracer$Stat ()* ZERO_STAT *Lcom/google/javascript/jscomp/Tracer$Stat; ? <0 %02d.%03d
23456 java/lang/Integer valueOf (I)Ljava/lang/Integer;
89:;< java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; >?@ traces Ljava/lang/ThreadLocal;
BCD ? L java/lang/ThreadLocal
X XGH
prettyPrint
BJKL set (Ljava/lang/Object;)V
BNO remove
QRST t java/lang/Class getName
yVWX getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger;Z )java/util/concurrent/CopyOnWriteArrayList
Y ] %com/google/javascript/jscomp/Tracer$1
\
%
B Signature HLjava/util/List; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; MAX_TRACE_SIZE
ConstantValue ? JLjava/lang/ThreadLocal; Code LineNumberTable LocalVariableTable tracingStatistic 6Lcom/google/javascript/jscomp/Tracer$TracingStatistic; i this %Lcom/google/javascript/jscomp/Tracer; trace 1Lcom/google/javascript/jscomp/Tracer$ThreadTrace;
StackMapTable MethodParameters longToPaddedString (JI)Ljava/lang/String; v digitsColumnWidth
digitWidth sb Ljava/lang/StringBuilder; n numSpaces RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; addTracingStatistic 9(Lcom/google/javascript/jscomp/Tracer$TracingStatistic;)I !clearTracingStatisticsTestingOnly value silenceThreshold threshold clearCurrentThreadTrace logAndClearCurrentThreadTrace setPrettyPrint enabled enableTypeMaps getTypeToCountMap 5()Ljava/util/Map; getTypeToSilentMap getTypeToTimeMap getStatsForType >(Ljava/lang/String;)Lcom/google/javascript/jscomp/Tracer$Stat; stat
formatTime (J)Ljava/lang/String; time sec ms t
SourceFile Tracer.java NestMembers? )com/google/javascript/jscomp/Tracer$Event 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;? [] ? Non-empty timer log:
InnerClasses
InternalClock TracingStatistic ThreadTrace AtomicTracerStatMap Stat Event? %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup 0 e f J
0 1 a b > ? c d " # ? # , - e ? f g
c d
c d
c d )* ?@ a h ? i ? ?*? *+? *,?
? *? ? ? *? $? *? .? 2 ? N? .? 8 >*?? <6? .? @ :? D ? '? I ? M:*? <*? *? O P???ո SN-? W? ?-? \? `? ? c? gm? oY-? q? u? x-? ~-? ?? ?? ? c? g?? oY-? q? u? x-? ?-*? ?? j r ? ? ? ? ? $ ? / ? 8 ? ? ? B ? b ? t ? w ? z ? ~ ? ? ? ? ? ? ? ? ? ?
? ?
? ? ?k H b lm 8 B : ? B 8n ? ?op ? ? ~ \qr s " ? L 88 E ? -? X&&t c d d w i ? *+? ?? j
k op t
uv i { #? ?>? ?Y? ?:d? ?? ?W? ?? j ) * + , -k * #w # #x ? y ? z{ t w x
? ? i c =? ?m? ????? j 7 9 : ; <k | # n ? s ? t | ? ? i ? j? ? c?? ?<? *?? ?W?????? E * 4 >*?? ?W? *?? ?W? *?? ?W?
*?? ?W? j > F G I K L M #Q DS KT NV UW XY _Z b\ i_k jz{ j} ? s t z } ~ ?? i ^ *? ? ? ? .*? ? W? .*? ? ?? j k m p rk lm s t l ? i % ? .? ? ? j
?~ ? ? i ! ?? $*? *? ? ? Ƹ SM,? W? ?*? ? ? ?*?