PerfLogger$class.java
5.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.forms.logging.PerfLogger$$anonfun
* com.adobe.forms.logging.PerfLogger$$anonfun$collect
* org.slf4j.Logger
* scala.Function0
* scala.Function1
* scala.Predef
* scala.Predef$
* scala.collection.Seq
* scala.collection.generic.TraversableForwarder
* scala.collection.mutable.BufferLike
* scala.collection.mutable.ListBuffer
* scala.collection.mutable.StringBuilder
* scala.collection.mutable.WrappedArray
* scala.runtime.AbstractFunction1
* scala.runtime.BoxesRunTime
* scala.util.DynamicVariable
*/
package com.adobe.forms.logging;
import com.adobe.forms.logging.PerfLogger;
import com.adobe.forms.logging.PerfLogger$;
import org.slf4j.Logger;
import scala.Function0;
import scala.Function1;
import scala.Predef;
import scala.collection.Seq;
import scala.collection.generic.TraversableForwarder;
import scala.collection.mutable.BufferLike;
import scala.collection.mutable.ListBuffer;
import scala.collection.mutable.StringBuilder;
import scala.collection.mutable.WrappedArray;
import scala.runtime.AbstractFunction1;
import scala.runtime.BoxesRunTime;
import scala.util.DynamicVariable;
public abstract class PerfLogger$class {
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public static Object measure(PerfLogger $this, Function0 msg, Function0 f) {
Object object;
if (!$this.logger().isDebugEnabled()) {
object = f.apply();
return object;
}
((BufferLike)$this._logs().value()).append((Seq)Predef..MODULE$.wrapRefArray((Object[])new String[]{new StringBuilder().append((Object)"!PERFORMANCE! <").append((Object)msg.apply().toString()).append((Object)">").toString()}));
long t1 = System.nanoTime();
Object exceptionResult1 = null;
try {
exceptionResult1 = f.apply();
}
catch (Throwable throwable) {
double diff = (double)(System.nanoTime() - t1) / 1000000.0;
((BufferLike)$this._logs().value()).append((Seq)Predef..MODULE$.wrapRefArray((Object[])new String[]{new StringBuilder().append((Object)"!PERFORMANCE! <startTime>").append((Object)BoxesRunTime.boxToLong((long)t1)).append((Object)"</startTime>").toString()}));
((BufferLike)$this._logs().value()).append((Seq)Predef..MODULE$.wrapRefArray((Object[])new String[]{new StringBuilder().append((Object)"!PERFORMANCE! <time>").append((Object)BoxesRunTime.boxToDouble((double)diff)).append((Object)"ms</time></").append((Object)msg.apply().toString()).append((Object)">").toString()}));
throw throwable;
}
double diff = (double)(System.nanoTime() - t1) / 1000000.0;
((BufferLike)$this._logs().value()).append((Seq)Predef..MODULE$.wrapRefArray((Object[])new String[]{new StringBuilder().append((Object)"!PERFORMANCE! <startTime>").append((Object)BoxesRunTime.boxToLong((long)t1)).append((Object)"</startTime>").toString()}));
((BufferLike)$this._logs().value()).append((Seq)Predef..MODULE$.wrapRefArray((Object[])new String[]{new StringBuilder().append((Object)"!PERFORMANCE! <time>").append((Object)BoxesRunTime.boxToDouble((double)diff)).append((Object)"ms</time></").append((Object)msg.apply().toString()).append((Object)">").toString()}));
object = exceptionResult1;
return object;
}
public static void collect(PerfLogger $this) {
if ($this.logger().isDebugEnabled()) {
((TraversableForwarder)$this._logs().value()).foreach((Function1)new scala.Serializable($this){
public static final long serialVersionUID;
private final PerfLogger $outer;
public static {
long l = PerfLogger$.anonfun.collect.serialVersionUID = 0;
}
public final void apply(String string) {
this.$outer.debug((Function0<Object>)new scala.Serializable(this, string){
public static final long serialVersionUID;
private final String x$1$1;
public static {
long l = com.adobe.forms.logging.PerfLogger$$anonfun$collect$1$$anonfun$apply$1.serialVersionUID = 0;
}
public final String apply() {
return this.x$1$1;
}
}, (Function0<Throwable>)new scala.Serializable(this){
public static final long serialVersionUID;
private final PerfLogger$.anonfun.collect $outer;
public static {
long l = com.adobe.forms.logging.PerfLogger$$anonfun$collect$1$$anonfun$apply$2.serialVersionUID = 0;
}
public final Throwable apply() {
return this.$outer.com$adobe$forms$logging$PerfLogger$$anonfun$$$outer().debug$default$2();
}
});
}
public PerfLogger com$adobe$forms$logging$PerfLogger$$anonfun$$$outer() {
return this.$outer;
}
});
}
((ListBuffer)$this._logs().value()).clear();
}
public static void $init$(PerfLogger $this) {
$this.com$adobe$forms$logging$PerfLogger$_setter_$_logs_$eq(new DynamicVariable((Object)new ListBuffer()));
}
}