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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProfilingTraceData
(@NotNull File traceFile, @NotNull ITransaction transaction) ProfilingTraceData
(@NotNull File traceFile, @NotNull Date profileStartTimestamp, @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 Date
@NotNull File
@NotNull String
@NotNull String
@NotNull String
@NotNull List<ProfilingTransactionData>
@NotNull String
boolean
void
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setAndroidApiLevel
(int androidApiLevel) void
setBuildId
(@NotNull String buildId) void
setCpuArchitecture
(@NotNull String cpuArchitecture) void
setDeviceCpuFrequencies
(@NotNull List<Integer> deviceCpuFrequencies) void
setDeviceIsEmulator
(boolean deviceIsEmulator) void
setDeviceLocale
(@NotNull String deviceLocale) void
setDeviceManufacturer
(@NotNull String deviceManufacturer) void
setDeviceModel
(@NotNull String deviceModel) void
setDeviceOsBuildNumber
(@NotNull String deviceOsBuildNumber) void
setDeviceOsVersion
(@NotNull String deviceOsVersion) void
setDevicePhysicalMemoryBytes
(@NotNull String devicePhysicalMemoryBytes) void
setDurationNs
(@NotNull String durationNs) void
setEnvironment
(@NotNull String environment) void
setProfileId
(@NotNull String profileId) void
setRelease
(@NotNull String release) void
setSampledProfile
(@Nullable String sampledProfile) void
setTimestamp
(@NotNull Date timestamp) void
setTraceId
(@NotNull String traceId) void
setTransactionId
(@NotNull String transactionId) void
setTransactionName
(@NotNull String transactionName) void
setTransactions
(@NotNull List<ProfilingTransactionData> transactions) void
setTruncationReason
(@NotNull String truncationReason) void
setUnknown
(@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 Date profileStartTimestamp, @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
-
getTimestamp
-
getMeasurementsMap
-
setAndroidApiLevel
public void setAndroidApiLevel(int androidApiLevel) -
setCpuArchitecture
-
setDeviceLocale
-
setDeviceManufacturer
-
setDeviceModel
-
setDeviceOsBuildNumber
-
setDeviceOsVersion
-
setDeviceIsEmulator
public void setDeviceIsEmulator(boolean deviceIsEmulator) -
setDeviceCpuFrequencies
-
setDevicePhysicalMemoryBytes
-
setTimestamp
-
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:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-