mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
438 lines
12 KiB
Smali
438 lines
12 KiB
Smali
.class public final Lio/sentry/SentryAppStartProfilingOptions;
|
|
.super Ljava/lang/Object;
|
|
.source "SentryAppStartProfilingOptions.java"
|
|
|
|
# interfaces
|
|
.implements Lio/sentry/JsonUnknown;
|
|
.implements Lio/sentry/JsonSerializable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/sentry/SentryAppStartProfilingOptions$JsonKeys;,
|
|
Lio/sentry/SentryAppStartProfilingOptions$Deserializer;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field isProfilingEnabled:Z
|
|
|
|
.field profileSampleRate:Ljava/lang/Double;
|
|
|
|
.field profileSampled:Z
|
|
|
|
.field profilingTracesDirPath:Ljava/lang/String;
|
|
|
|
.field profilingTracesHz:I
|
|
|
|
.field traceSampleRate:Ljava/lang/Double;
|
|
|
|
.field traceSampled:Z
|
|
|
|
.field private unknown:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampled:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampleRate:Ljava/lang/Double;
|
|
|
|
iput-boolean v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampled:Z
|
|
|
|
iput-object v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampleRate:Ljava/lang/Double;
|
|
|
|
iput-object v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesDirPath:Ljava/lang/String;
|
|
|
|
iput-boolean v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->isProfilingEnabled:Z
|
|
|
|
iput v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesHz:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Lio/sentry/SentryOptions;Lio/sentry/TracesSamplingDecision;)V
|
|
.locals 1
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 39
|
|
invoke-virtual {p2}, Lio/sentry/TracesSamplingDecision;->getSampled()Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampled:Z
|
|
|
|
.line 40
|
|
invoke-virtual {p2}, Lio/sentry/TracesSamplingDecision;->getSampleRate()Ljava/lang/Double;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampleRate:Ljava/lang/Double;
|
|
|
|
.line 41
|
|
invoke-virtual {p2}, Lio/sentry/TracesSamplingDecision;->getProfileSampled()Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampled:Z
|
|
|
|
.line 42
|
|
invoke-virtual {p2}, Lio/sentry/TracesSamplingDecision;->getProfileSampleRate()Ljava/lang/Double;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampleRate:Ljava/lang/Double;
|
|
|
|
.line 43
|
|
invoke-virtual {p1}, Lio/sentry/SentryOptions;->getProfilingTracesDirPath()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesDirPath:Ljava/lang/String;
|
|
|
|
.line 44
|
|
invoke-virtual {p1}, Lio/sentry/SentryOptions;->isProfilingEnabled()Z
|
|
|
|
move-result p2
|
|
|
|
iput-boolean p2, p0, Lio/sentry/SentryAppStartProfilingOptions;->isProfilingEnabled:Z
|
|
|
|
.line 45
|
|
invoke-virtual {p1}, Lio/sentry/SentryOptions;->getProfilingTracesHz()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesHz:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getProfileSampleRate()Ljava/lang/Double;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampleRate:Ljava/lang/Double;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getProfilingTracesDirPath()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesDirPath:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getProfilingTracesHz()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesHz:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getTraceSampleRate()Ljava/lang/Double;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampleRate:Ljava/lang/Double;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getUnknown()Ljava/util/Map;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->unknown:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public isProfileSampled()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampled:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public isProfilingEnabled()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->isProfilingEnabled:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public isTraceSampled()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampled:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 119
|
|
invoke-interface {p1}, Lio/sentry/ObjectWriter;->beginObject()Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "profile_sampled"
|
|
|
|
.line 120
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampled:Z
|
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "profile_sample_rate"
|
|
|
|
.line 121
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampleRate:Ljava/lang/Double;
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "trace_sampled"
|
|
|
|
.line 122
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampled:Z
|
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "trace_sample_rate"
|
|
|
|
.line 123
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampleRate:Ljava/lang/Double;
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "profiling_traces_dir_path"
|
|
|
|
.line 124
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesDirPath:Ljava/lang/String;
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "is_profiling_enabled"
|
|
|
|
.line 125
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->isProfilingEnabled:Z
|
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "profiling_traces_hz"
|
|
|
|
.line 126
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesHz:I
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
iget-object v0, p0, Lio/sentry/SentryAppStartProfilingOptions;->unknown:Ljava/util/Map;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 129
|
|
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lio/sentry/SentryAppStartProfilingOptions;->unknown:Ljava/util/Map;
|
|
|
|
.line 130
|
|
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
.line 131
|
|
invoke-interface {p1, v1}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
.line 132
|
|
invoke-interface {p1, p2, v2}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
goto :goto_0
|
|
|
|
.line 135
|
|
:cond_0
|
|
invoke-interface {p1}, Lio/sentry/ObjectWriter;->endObject()Lio/sentry/ObjectWriter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProfileSampleRate(Ljava/lang/Double;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampleRate:Ljava/lang/Double;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProfileSampled(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profileSampled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProfilingEnabled(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->isProfilingEnabled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProfilingTracesDirPath(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesDirPath:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProfilingTracesHz(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->profilingTracesHz:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTraceSampleRate(Ljava/lang/Double;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampleRate:Ljava/lang/Double;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTraceSampled(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->traceSampled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUnknown(Ljava/util/Map;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lio/sentry/SentryAppStartProfilingOptions;->unknown:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|