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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionProfilingTransactionData
(@NotNull ITransaction transaction, @NotNull Long startNs, @NotNull Long startCpuMs) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull String
getId()
@NotNull String
getName()
@Nullable Long
@Nullable Long
@NotNull Long
@NotNull Long
@NotNull String
int
hashCode()
void
notifyFinish
(@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.void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
void
setRelativeEndNs
(@Nullable Long relativeEndNs) void
setRelativeStartNs
(@NotNull Long relativeStartNs) void
setTraceId
(@NotNull String traceId) void
setUnknown
(@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:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-