Package io.sentry
Class ProfilingTraceData
java.lang.Object
io.sentry.ProfilingTraceData
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
@Internal
public final class ProfilingTraceData
extends Object
implements JsonUnknown, JsonSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProfilingTraceData(@NotNull File traceFile, @NotNull ITransaction transaction) ProfilingTraceData(@NotNull File traceFile, @NotNull List<ProfilingTransactionData> transactions, @NotNull String transactionName, @NotNull String transactionId, @NotNull String traceId, @NotNull String durationNanos, int sdkInt, @NotNull String cpuArchitecture, @NotNull Callable<List<Integer>> deviceCpuFrequenciesReader, @Nullable String deviceManufacturer, @Nullable String deviceModel, @Nullable String deviceOsVersion, @Nullable Boolean deviceIsEmulator, @Nullable String devicePhysicalMemoryBytes, @Nullable String buildId, @Nullable String release, @Nullable String environment, @NotNull String truncationReason, @NotNull Map<String, ProfileMeasurement> measurementsMap) -
Method Summary
Modifier and TypeMethodDescriptionint@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull String@NotNull Map<String,ProfileMeasurement> @NotNull String@NotNull String@NotNull String@Nullable String@NotNull File@NotNull String@NotNull String@NotNull String@NotNull List<ProfilingTransactionData>@NotNull Stringbooleanvoidvoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetAndroidApiLevel(int androidApiLevel) voidsetBuildId(@NotNull String buildId) voidsetCpuArchitecture(@NotNull String cpuArchitecture) voidsetDeviceCpuFrequencies(@NotNull List<Integer> deviceCpuFrequencies) voidsetDeviceIsEmulator(boolean deviceIsEmulator) voidsetDeviceLocale(@NotNull String deviceLocale) voidsetDeviceManufacturer(@NotNull String deviceManufacturer) voidsetDeviceModel(@NotNull String deviceModel) voidsetDeviceOsBuildNumber(@NotNull String deviceOsBuildNumber) voidsetDeviceOsVersion(@NotNull String deviceOsVersion) voidsetDevicePhysicalMemoryBytes(@NotNull String devicePhysicalMemoryBytes) voidsetDurationNs(@NotNull String durationNs) voidsetEnvironment(@NotNull String environment) voidsetProfileId(@NotNull String profileId) voidsetRelease(@NotNull String release) voidsetSampledProfile(@Nullable String sampledProfile) voidsetTraceId(@NotNull String traceId) voidsetTransactionId(@NotNull String transactionId) voidsetTransactionName(@NotNull String transactionName) voidsetTransactions(@NotNull List<ProfilingTransactionData> transactions) voidsetTruncationReason(@NotNull String truncationReason) voidsetUnknown(@Nullable Map<String, Object> unknown)
-
Field Details
-
TRUNCATION_REASON_NORMAL
- See Also:
-
TRUNCATION_REASON_TIMEOUT
- See Also:
-
TRUNCATION_REASON_BACKGROUNDED
- See Also:
-
-
Constructor Details
-
ProfilingTraceData
public ProfilingTraceData(@NotNull @NotNull File traceFile, @NotNull @NotNull ITransaction transaction) -
ProfilingTraceData
public ProfilingTraceData(@NotNull @NotNull File traceFile, @NotNull @NotNull List<ProfilingTransactionData> transactions, @NotNull @NotNull String transactionName, @NotNull @NotNull String transactionId, @NotNull @NotNull String traceId, @NotNull @NotNull String durationNanos, int sdkInt, @NotNull @NotNull String cpuArchitecture, @NotNull @NotNull Callable<List<Integer>> deviceCpuFrequenciesReader, @Nullable @Nullable String deviceManufacturer, @Nullable @Nullable String deviceModel, @Nullable @Nullable String deviceOsVersion, @Nullable @Nullable Boolean deviceIsEmulator, @Nullable @Nullable String devicePhysicalMemoryBytes, @Nullable @Nullable String buildId, @Nullable @Nullable String release, @Nullable @Nullable String environment, @NotNull @NotNull String truncationReason, @NotNull @NotNull Map<String, ProfileMeasurement> measurementsMap)
-
-
Method Details
-
getTraceFile
-
getAndroidApiLevel
public int getAndroidApiLevel() -
getCpuArchitecture
-
getDeviceLocale
-
getDeviceManufacturer
-
getDeviceModel
-
getDeviceOsBuildNumber
-
getDeviceOsName
-
getDeviceOsVersion
-
isDeviceIsEmulator
public boolean isDeviceIsEmulator() -
getPlatform
-
getBuildId
-
getTransactionName
-
getRelease
-
getTransactionId
-
getTransactions
-
getTraceId
-
getProfileId
-
getEnvironment
-
getSampledProfile
-
getDurationNs
-
getDeviceCpuFrequencies
-
getDevicePhysicalMemoryBytes
-
getTruncationReason
-
getMeasurementsMap
-
setAndroidApiLevel
public void setAndroidApiLevel(int androidApiLevel) -
setCpuArchitecture
-
setDeviceLocale
-
setDeviceManufacturer
-
setDeviceModel
-
setDeviceOsBuildNumber
-
setDeviceOsVersion
-
setDeviceIsEmulator
public void setDeviceIsEmulator(boolean deviceIsEmulator) -
setDeviceCpuFrequencies
-
setDevicePhysicalMemoryBytes
-
setTruncationReason
-
setTransactions
-
setBuildId
-
setTransactionName
-
setDurationNs
-
setRelease
-
setTransactionId
-
setTraceId
-
setProfileId
-
setEnvironment
-
setSampledProfile
-
readDeviceCpuFrequencies
public void readDeviceCpuFrequencies() -
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-