Package io.sentry
Class ProfilingTraceData
- java.lang.Object
-
- io.sentry.ProfilingTraceData
-
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Internal public final class ProfilingTraceData extends java.lang.Object implements JsonUnknown, JsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProfilingTraceData.Deserializer
static class
ProfilingTraceData.JsonKeys
-
Constructor Summary
Constructors Constructor Description ProfilingTraceData(@NotNull java.io.File traceFile, @NotNull ITransaction transaction)
ProfilingTraceData(@NotNull java.io.File traceFile, @NotNull ITransaction transaction, @NotNull java.lang.String durationNanos, int sdkInt, @NotNull java.util.concurrent.Callable<java.util.List<java.lang.Integer>> deviceCpuFrequenciesReader, @Nullable java.lang.String deviceManufacturer, @Nullable java.lang.String deviceModel, @Nullable java.lang.String deviceOsVersion, @Nullable java.lang.Boolean deviceIsEmulator, @Nullable java.lang.String devicePhysicalMemoryBytes, @Nullable java.lang.String buildId, @Nullable java.lang.String versionName, @Nullable java.lang.String versionCode, @Nullable java.lang.String environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAndroidApiLevel()
@NotNull java.lang.String
getBuildId()
@NotNull java.util.List<java.lang.Integer>
getDeviceCpuFrequencies()
@NotNull java.lang.String
getDeviceLocale()
@NotNull java.lang.String
getDeviceManufacturer()
@NotNull java.lang.String
getDeviceModel()
@NotNull java.lang.String
getDeviceOsBuildNumber()
@NotNull java.lang.String
getDeviceOsName()
@NotNull java.lang.String
getDeviceOsVersion()
@NotNull java.lang.String
getDevicePhysicalMemoryBytes()
@NotNull java.lang.String
getDurationNs()
@NotNull java.lang.String
getEnvironment()
@NotNull java.lang.String
getPlatform()
@NotNull java.lang.String
getProfileId()
@Nullable java.lang.String
getSampledProfile()
@NotNull java.io.File
getTraceFile()
@NotNull java.lang.String
getTraceId()
@NotNull java.lang.String
getTransactionId()
@NotNull java.lang.String
getTransactionName()
@Nullable java.util.Map<java.lang.String,java.lang.Object>
getUnknown()
@NotNull java.lang.String
getVersionCode()
@NotNull java.lang.String
getVersionName()
boolean
isDeviceIsEmulator()
void
readDeviceCpuFrequencies()
void
serialize(@NotNull JsonObjectWriter writer, @NotNull ILogger logger)
void
setAndroidApiLevel(int androidApiLevel)
void
setBuildId(@NotNull java.lang.String buildId)
void
setDeviceCpuFrequencies(@NotNull java.util.List<java.lang.Integer> deviceCpuFrequencies)
void
setDeviceIsEmulator(boolean deviceIsEmulator)
void
setDeviceLocale(@NotNull java.lang.String deviceLocale)
void
setDeviceManufacturer(@NotNull java.lang.String deviceManufacturer)
void
setDeviceModel(@NotNull java.lang.String deviceModel)
void
setDeviceOsBuildNumber(@NotNull java.lang.String deviceOsBuildNumber)
void
setDeviceOsVersion(@NotNull java.lang.String deviceOsVersion)
void
setDevicePhysicalMemoryBytes(@NotNull java.lang.String devicePhysicalMemoryBytes)
void
setDurationNs(@NotNull java.lang.String durationNs)
void
setEnvironment(@NotNull java.lang.String environment)
void
setProfileId(@NotNull java.lang.String profileId)
void
setSampledProfile(@Nullable java.lang.String sampledProfile)
void
setTraceId(@NotNull java.lang.String traceId)
void
setTransactionId(@NotNull java.lang.String transactionId)
void
setTransactionName(@NotNull java.lang.String transactionName)
void
setUnknown(@Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
void
setVersionCode(@NotNull java.lang.String versionCode)
void
setVersionName(@NotNull java.lang.String versionName)
-
-
-
Constructor Detail
-
ProfilingTraceData
public ProfilingTraceData(@NotNull @NotNull java.io.File traceFile, @NotNull @NotNull ITransaction transaction)
-
ProfilingTraceData
public ProfilingTraceData(@NotNull @NotNull java.io.File traceFile, @NotNull @NotNull ITransaction transaction, @NotNull @NotNull java.lang.String durationNanos, int sdkInt, @NotNull @NotNull java.util.concurrent.Callable<java.util.List<java.lang.Integer>> deviceCpuFrequenciesReader, @Nullable @Nullable java.lang.String deviceManufacturer, @Nullable @Nullable java.lang.String deviceModel, @Nullable @Nullable java.lang.String deviceOsVersion, @Nullable @Nullable java.lang.Boolean deviceIsEmulator, @Nullable @Nullable java.lang.String devicePhysicalMemoryBytes, @Nullable @Nullable java.lang.String buildId, @Nullable @Nullable java.lang.String versionName, @Nullable @Nullable java.lang.String versionCode, @Nullable @Nullable java.lang.String environment)
-
-
Method Detail
-
getTraceFile
@NotNull public @NotNull java.io.File getTraceFile()
-
getAndroidApiLevel
public int getAndroidApiLevel()
-
getDeviceLocale
@NotNull public @NotNull java.lang.String getDeviceLocale()
-
getDeviceManufacturer
@NotNull public @NotNull java.lang.String getDeviceManufacturer()
-
getDeviceModel
@NotNull public @NotNull java.lang.String getDeviceModel()
-
getDeviceOsBuildNumber
@NotNull public @NotNull java.lang.String getDeviceOsBuildNumber()
-
getDeviceOsName
@NotNull public @NotNull java.lang.String getDeviceOsName()
-
getDeviceOsVersion
@NotNull public @NotNull java.lang.String getDeviceOsVersion()
-
isDeviceIsEmulator
public boolean isDeviceIsEmulator()
-
getPlatform
@NotNull public @NotNull java.lang.String getPlatform()
-
getBuildId
@NotNull public @NotNull java.lang.String getBuildId()
-
getTransactionName
@NotNull public @NotNull java.lang.String getTransactionName()
-
getVersionName
@NotNull public @NotNull java.lang.String getVersionName()
-
getVersionCode
@NotNull public @NotNull java.lang.String getVersionCode()
-
getTransactionId
@NotNull public @NotNull java.lang.String getTransactionId()
-
getTraceId
@NotNull public @NotNull java.lang.String getTraceId()
-
getProfileId
@NotNull public @NotNull java.lang.String getProfileId()
-
getEnvironment
@NotNull public @NotNull java.lang.String getEnvironment()
-
getSampledProfile
@Nullable public @Nullable java.lang.String getSampledProfile()
-
getDurationNs
@NotNull public @NotNull java.lang.String getDurationNs()
-
getDeviceCpuFrequencies
@NotNull public @NotNull java.util.List<java.lang.Integer> getDeviceCpuFrequencies()
-
getDevicePhysicalMemoryBytes
@NotNull public @NotNull java.lang.String getDevicePhysicalMemoryBytes()
-
setAndroidApiLevel
public void setAndroidApiLevel(int androidApiLevel)
-
setDeviceLocale
public void setDeviceLocale(@NotNull @NotNull java.lang.String deviceLocale)
-
setDeviceManufacturer
public void setDeviceManufacturer(@NotNull @NotNull java.lang.String deviceManufacturer)
-
setDeviceModel
public void setDeviceModel(@NotNull @NotNull java.lang.String deviceModel)
-
setDeviceOsBuildNumber
public void setDeviceOsBuildNumber(@NotNull @NotNull java.lang.String deviceOsBuildNumber)
-
setDeviceOsVersion
public void setDeviceOsVersion(@NotNull @NotNull java.lang.String deviceOsVersion)
-
setDeviceIsEmulator
public void setDeviceIsEmulator(boolean deviceIsEmulator)
-
setDeviceCpuFrequencies
public void setDeviceCpuFrequencies(@NotNull @NotNull java.util.List<java.lang.Integer> deviceCpuFrequencies)
-
setDevicePhysicalMemoryBytes
public void setDevicePhysicalMemoryBytes(@NotNull @NotNull java.lang.String devicePhysicalMemoryBytes)
-
setBuildId
public void setBuildId(@NotNull @NotNull java.lang.String buildId)
-
setTransactionName
public void setTransactionName(@NotNull @NotNull java.lang.String transactionName)
-
setDurationNs
public void setDurationNs(@NotNull @NotNull java.lang.String durationNs)
-
setVersionName
public void setVersionName(@NotNull @NotNull java.lang.String versionName)
-
setVersionCode
public void setVersionCode(@NotNull @NotNull java.lang.String versionCode)
-
setTransactionId
public void setTransactionId(@NotNull @NotNull java.lang.String transactionId)
-
setTraceId
public void setTraceId(@NotNull @NotNull java.lang.String traceId)
-
setProfileId
public void setProfileId(@NotNull @NotNull java.lang.String profileId)
-
setEnvironment
public void setEnvironment(@NotNull @NotNull java.lang.String environment)
-
setSampledProfile
public void setSampledProfile(@Nullable @Nullable java.lang.String sampledProfile)
-
readDeviceCpuFrequencies
public void readDeviceCpuFrequencies()
-
serialize
public void serialize(@NotNull @NotNull JsonObjectWriter writer, @NotNull @NotNull ILogger logger) throws java.io.IOException
- Specified by:
serialize
in interfaceJsonSerializable
- Throws:
java.io.IOException
-
getUnknown
@Nullable public @Nullable java.util.Map<java.lang.String,java.lang.Object> getUnknown()
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
public void setUnknown(@Nullable @Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
- Specified by:
setUnknown
in interfaceJsonUnknown
-
-