Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
package com.google.firebase.perf.metrics;
import com.google.firebase.perf.v1.PerfSession;
import com.google.firebase.perf.v1.TraceMetric;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes3.dex */
public class TraceMetricBuilder {
public final Trace trace;
public TraceMetricBuilder(Trace trace) {
this.trace = trace;
}
public TraceMetric build() {
TraceMetric.Builder durationUs = TraceMetric.newBuilder().setName(this.trace.getName()).setClientStartTimeUs(this.trace.getStartTime().getMicros()).setDurationUs(this.trace.getStartTime().getDurationMicros(this.trace.getEndTime()));
for (Counter counter : this.trace.getCounters().values()) {
durationUs.putCounters(counter.getName(), counter.getCount());
}
List subtraces = this.trace.getSubtraces();
if (!subtraces.isEmpty()) {
Iterator it = subtraces.iterator();
while (it.hasNext()) {
durationUs.addSubtraces(new TraceMetricBuilder((Trace) it.next()).build());
}
}
durationUs.putAllCustomAttributes(this.trace.getAttributes());
PerfSession[] buildAndSort = com.google.firebase.perf.session.PerfSession.buildAndSort(this.trace.getSessions());
if (buildAndSort != null) {
durationUs.addAllPerfSessions(Arrays.asList(buildAndSort));
}
return (TraceMetric) durationUs.build();
}
}