Package io.sentry
Class ProfilingTransactionData
java.lang.Object
io.sentry.ProfilingTransactionData
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
@Internal
public final class ProfilingTransactionData
extends Object
implements JsonUnknown, JsonSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionProfilingTransactionData(@NotNull ITransaction transaction, @NotNull Long startNs, @NotNull Long startCpuMs) -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull StringgetId()@NotNull StringgetName()@Nullable Long@Nullable Long@NotNull Long@NotNull Long@NotNull StringinthashCode()voidnotifyFinish(@NotNull Long endNs, @NotNull Long profileStartNs, @NotNull Long endCpuMs, @NotNull Long profileStartCpuMs) Notifies this transaction data that the transaction (or the profile) finished, to update its internal values.voidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidvoidvoidsetRelativeEndNs(@Nullable Long relativeEndNs) voidsetRelativeStartNs(@NotNull Long relativeStartNs) voidsetTraceId(@NotNull String traceId) voidsetUnknown(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
ProfilingTransactionData
public ProfilingTransactionData() -
ProfilingTransactionData
public ProfilingTransactionData(@NotNull @NotNull ITransaction transaction, @NotNull @NotNull Long startNs, @NotNull @NotNull Long startCpuMs)
-
-
Method Details
-
notifyFinish
public void notifyFinish(@NotNull @NotNull Long endNs, @NotNull @NotNull Long profileStartNs, @NotNull @NotNull Long endCpuMs, @NotNull @NotNull Long profileStartCpuMs) Notifies this transaction data that the transaction (or the profile) finished, to update its internal values. It's safe to call this method multiple times- Parameters:
endNs- The timestamp in nanoseconds the transaction (or profile) finished.profileStartNs- The timestamp the profile started, so that timestamps can be converted in times relative to the profile start timestamp.
-
getId
-
getTraceId
-
getName
-
getRelativeStartNs
-
getRelativeEndNs
-
getRelativeEndCpuMs
-
getRelativeStartCpuMs
-
setId
-
setTraceId
-
setName
-
setRelativeStartNs
-
setRelativeEndNs
-
equals
-
hashCode
public int hashCode() -
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
-