1495 lines
40 KiB
Smali
1495 lines
40 KiB
Smali
.class public Lcom/google/firebase/perf/metrics/Trace;
|
|
.super Le/k/c/p/b/b;
|
|
.source "com.google.firebase:firebase-perf@@19.0.5"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
.implements Le/k/c/p/b/w;
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/google/firebase/perf/metrics/Trace;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
.field public final e:Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
.field public final f:Ljava/lang/String;
|
|
|
|
.field public final g:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/google/firebase/perf/internal/zzt;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final h:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/google/firebase/perf/metrics/Trace;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final i:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/google/firebase/perf/metrics/zza;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final j:Le/k/c/p/b/f;
|
|
|
|
.field public final k:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
.field public m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
.field public final n:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Le/k/c/p/b/w;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
new-instance v0, Le/k/c/p/c/b;
|
|
|
|
invoke-direct {v0}, Le/k/c/p/c/b;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/firebase/perf/metrics/Trace;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
new-instance v0, Le/k/c/p/c/d;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Landroid/os/Parcel;ZLe/k/c/p/c/b;)V
|
|
.locals 2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
move-object v0, p3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {}, Le/k/c/p/b/a;->c()Le/k/c/p/b/a;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-direct {p0, v0}, Le/k/c/p/b/b;-><init>(Le/k/c/p/b/a;)V
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->n:Ljava/lang/ref/WeakReference;
|
|
|
|
const-class v0, Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->readParcelable(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->d:Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
const-class v1, Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->readList(Ljava/util/List;Ljava/lang/ClassLoader;)V
|
|
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
const-class v1, Lcom/google/firebase/perf/metrics/zza;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->readMap(Ljava/util/Map;Ljava/lang/ClassLoader;)V
|
|
|
|
const-class v0, Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->readParcelable(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
const-class v0, Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->readParcelable(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
const-class v1, Lcom/google/firebase/perf/internal/zzt;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->readList(Ljava/util/List;Ljava/lang/ClassLoader;)V
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
iput-object p3, p0, Lcom/google/firebase/perf/metrics/Trace;->j:Le/k/c/p/b/f;
|
|
|
|
iput-object p3, p0, Lcom/google/firebase/perf/metrics/Trace;->e:Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-static {}, Le/k/c/p/b/f;->e()Le/k/c/p/b/f;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->j:Le/k/c/p/b/f;
|
|
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/GaugeManager;->zzbx()Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->e:Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Le/k/c/p/b/f;Le/k/a/c/h/e/l0;Le/k/c/p/b/a;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Le/k/c/p/b/f;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Le/k/a/c/h/e/l0;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Le/k/c/p/b/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/GaugeManager;->zzbx()Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-direct {p0, p4}, Le/k/c/p/b/b;-><init>(Le/k/c/p/b/a;)V
|
|
|
|
new-instance p4, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {p4, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p4, p0, Lcom/google/firebase/perf/metrics/Trace;->n:Ljava/lang/ref/WeakReference;
|
|
|
|
const/4 p4, 0x0
|
|
|
|
iput-object p4, p0, Lcom/google/firebase/perf/metrics/Trace;->d:Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
new-instance p1, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
new-instance p1, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
iput-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->j:Le/k/c/p/b/f;
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
iput-object p3, p0, Lcom/google/firebase/perf/metrics/Trace;->e:Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/google/firebase/perf/internal/zzt;)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->p()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public describeContents()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public finalize()V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Throwable;
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->p()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "FirebasePerformance"
|
|
|
|
const-string v3, "Trace \'%s\' is started but not stopped when it is destructed!"
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
iget-object v5, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object v5, v4, v1
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
invoke-virtual {p0, v2}, Le/k/c/p/b/b;->zzb(I)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_1
|
|
invoke-super {p0}, Ljava/lang/Object;->finalize()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-super {p0}, Ljava/lang/Object;->finalize()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getAttribute(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getAttributes()Ljava/util/Map;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getLongMetric(Ljava/lang/String;)J
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/google/firebase/perf/metrics/zza;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-nez p1, :cond_1
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
return-wide v0
|
|
|
|
:cond_1
|
|
iget-object p1, p1, Lcom/google/firebase/perf/metrics/zza;->e:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public incrementMetric(Ljava/lang/String;J)V
|
|
.locals 5
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-static {p1}, Le/k/c/p/b/q;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const-string v4, "FirebasePerformance"
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, p2, v2
|
|
|
|
aput-object v0, p2, v1
|
|
|
|
const-string p1, "Cannot increment metric %s. Metric name is invalid.(%s)"
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v4, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->p()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, p2, v2
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object p1, p2, v1
|
|
|
|
const-string p1, "Cannot increment metric \'%s\' for trace \'%s\' because it\'s not started"
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, p2, v2
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object p1, p2, v1
|
|
|
|
const-string p1, "Cannot increment metric \'%s\' for trace \'%s\' because it\'s been stopped"
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/firebase/perf/metrics/zza;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
new-instance v0, Lcom/google/firebase/perf/metrics/zza;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/firebase/perf/metrics/zza;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
iget-object p1, v0, Lcom/google/firebase/perf/metrics/zza;->e:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {p1, p2, p3}, Ljava/util/concurrent/atomic/AtomicLong;->addAndGet(J)J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final o()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/google/firebase/perf/internal/zzt;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final p()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public putAttribute(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 7
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
invoke-interface {v2, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
invoke-interface {v2}, Ljava/util/Map;->size()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x5
|
|
|
|
if-ge v2, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
sget-object v4, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const-string v5, "Exceeds max limit of number of attributes - %d"
|
|
|
|
new-array v6, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, v6, v0
|
|
|
|
invoke-static {v4, v5, v6}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
new-instance v2, Ljava/util/AbstractMap$SimpleEntry;
|
|
|
|
invoke-direct {v2, p1, p2}, Ljava/util/AbstractMap$SimpleEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
invoke-static {v2}, Le/k/c/p/b/q;->a(Ljava/util/Map$Entry;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance v3, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {v3, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:cond_3
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
sget-object v3, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const-string v4, "Trace %s has been stopped"
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
iget-object v6, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object v6, v5, v0
|
|
|
|
invoke-static {v3, v4, v5}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
const/4 v3, 0x3
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, v3, v0
|
|
|
|
aput-object p2, v3, v1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v3, v1
|
|
|
|
const-string v1, "Can not set attribute %s with value %s (%s)"
|
|
|
|
invoke-static {v1, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "FirebasePerformance"
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public putMetric(Ljava/lang/String;J)V
|
|
.locals 5
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-static {p1}, Le/k/c/p/b/q;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const-string v4, "FirebasePerformance"
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, p2, v2
|
|
|
|
aput-object v0, p2, v1
|
|
|
|
const-string p1, "Cannot set value for metric %s. Metric name is invalid.(%s)"
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v4, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->p()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, p2, v2
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object p1, p2, v1
|
|
|
|
const-string p1, "Cannot set value for metric \'%s\' for trace \'%s\' because it\'s not started"
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p1, p2, v2
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object p1, p2, v1
|
|
|
|
const-string p1, "Cannot set value for metric \'%s\' for trace \'%s\' because it\'s been stopped"
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/firebase/perf/metrics/zza;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
new-instance v0, Lcom/google/firebase/perf/metrics/zza;
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/firebase/perf/metrics/zza;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
iget-object p1, v0, Lcom/google/firebase/perf/metrics/zza;->e:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {p1, p2, p3}, Ljava/util/concurrent/atomic/AtomicLong;->set(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final q()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final r()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/google/firebase/perf/metrics/zza;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public removeAttribute(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p1, "FirebasePerformance"
|
|
|
|
const-string v0, "Can\'t remove a attribute from a Trace that\'s stopped."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->k:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final s()Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public start()V
|
|
.locals 8
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-static {}, Le/k/a/c/h/e/g;->f()Le/k/a/c/h/e/g;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Le/k/a/c/h/e/g;->c()Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "FirebasePerformance"
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Trace feature is disabled."
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, "Trace name must not be null"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0x64
|
|
|
|
if-le v4, v5, :cond_2
|
|
|
|
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
new-array v4, v3, [Ljava/lang/Object;
|
|
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
const-string v5, "Trace name must not exceed %d characters"
|
|
|
|
invoke-static {v0, v5, v4}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v4, "_"
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
invoke-static {}, Le/k/a/c/h/e/n0;->values()[Le/k/a/c/h/e/n0;
|
|
|
|
move-result-object v4
|
|
|
|
array-length v5, v4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
if-ge v6, v5, :cond_3
|
|
|
|
aget-object v7, v4, v6
|
|
|
|
invoke-virtual {v7}, Le/k/a/c/h/e/n0;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_4
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const-string v4, "_st_"
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
const-string v0, "Trace name must not start with \'_\'"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_5
|
|
|
|
const/4 v4, 0x2
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
iget-object v5, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
aput-object v0, v4, v3
|
|
|
|
const-string v0, "Cannot start trace %s. Trace name is invalid.(%s)"
|
|
|
|
invoke-static {v0, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
new-array v0, v3, [Ljava/lang/Object;
|
|
|
|
iget-object v3, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object v3, v0, v2
|
|
|
|
const-string v2, "Trace \'%s\' has already started, should not start again!"
|
|
|
|
invoke-static {v2, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
invoke-virtual {p0}, Le/k/c/p/b/b;->zzbp()V
|
|
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/SessionManager;->zzck()Lcom/google/firebase/perf/internal/SessionManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/perf/internal/SessionManager;->zzcl()Lcom/google/firebase/perf/internal/zzt;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/SessionManager;->zzck()Lcom/google/firebase/perf/internal/SessionManager;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/perf/metrics/Trace;->n:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v1, v2}, Lcom/google/firebase/perf/internal/SessionManager;->zzc(Ljava/lang/ref/WeakReference;)V
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v1, Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-direct {v1}, Lcom/google/android/gms/internal/firebase-perf/zzbt;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
iget-boolean v1, v0, Lcom/google/firebase/perf/internal/zzt;->e:Z
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->e:Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
iget-object v0, v0, Lcom/google/firebase/perf/internal/zzt;->f:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-virtual {v1, v0}, Lcom/google/firebase/perf/internal/GaugeManager;->zzj(Lcom/google/android/gms/internal/firebase-perf/zzbt;)V
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method public stop()V
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->p()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-string v3, "FirebasePerformance"
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-array v0, v2, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const-string v1, "Trace \'%s\' has not been started so unable to stop!"
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/firebase/perf/metrics/Trace;->q()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-array v0, v2, [Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const-string v1, "Trace \'%s\' has already stopped, should not stop again!"
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/SessionManager;->zzck()Lcom/google/firebase/perf/internal/SessionManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->n:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/firebase/perf/internal/SessionManager;->zzd(Ljava/lang/ref/WeakReference;)V
|
|
|
|
invoke-virtual {p0}, Le/k/c/p/b/b;->zzbq()V
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/internal/firebase-perf/zzbt;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->d:Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
iget-object v2, v1, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
iput-object v0, v1, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->j:Le/k/c/p/b/f;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
new-instance v1, Le/k/c/p/c/c;
|
|
|
|
invoke-direct {v1, p0}, Le/k/c/p/c/c;-><init>(Lcom/google/firebase/perf/metrics/Trace;)V
|
|
|
|
invoke-virtual {v1}, Le/k/c/p/c/c;->a()Le/k/a/c/h/e/e2;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0}, Le/k/c/p/b/b;->zzbh()Le/k/a/c/h/e/d1;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Le/k/c/p/b/f;->a(Le/k/a/c/h/e/e2;Le/k/a/c/h/e/d1;)V
|
|
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/SessionManager;->zzck()Lcom/google/firebase/perf/internal/SessionManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/perf/internal/SessionManager;->zzcl()Lcom/google/firebase/perf/internal/zzt;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v0, v0, Lcom/google/firebase/perf/internal/zzt;->e:Z
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->e:Lcom/google/firebase/perf/internal/GaugeManager;
|
|
|
|
invoke-static {}, Lcom/google/firebase/perf/internal/SessionManager;->zzck()Lcom/google/firebase/perf/internal/SessionManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/google/firebase/perf/internal/SessionManager;->zzcl()Lcom/google/firebase/perf/internal/zzt;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v1, v1, Lcom/google/firebase/perf/internal/zzt;->f:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/firebase/perf/internal/GaugeManager;->zzj(Lcom/google/android/gms/internal/firebase-perf/zzbt;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
const-string v0, "Trace name is empty, no log is sent to server"
|
|
|
|
invoke-static {v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final t()Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final u()Ljava/util/List;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/google/firebase/perf/metrics/Trace;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 1
|
|
.param p1 # Landroid/os/Parcel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->d:Lcom/google/firebase/perf/metrics/Trace;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/os/Parcel;->writeParcelable(Landroid/os/Parcelable;I)V
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->f:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->h:Ljava/util/List;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeList(Ljava/util/List;)V
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->i:Ljava/util/Map;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeMap(Ljava/util/Map;)V
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->l:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/os/Parcel;->writeParcelable(Landroid/os/Parcelable;I)V
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->m:Lcom/google/android/gms/internal/firebase-perf/zzbt;
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/os/Parcel;->writeParcelable(Landroid/os/Parcelable;I)V
|
|
|
|
iget-object p2, p0, Lcom/google/firebase/perf/metrics/Trace;->g:Ljava/util/List;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeList(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|