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
  • 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

      @NotNull public @NotNull String getId()
    • getTraceId

      @NotNull public @NotNull String getTraceId()
    • getName

      @NotNull public @NotNull String getName()
    • getRelativeStartNs

      @NotNull public @NotNull Long getRelativeStartNs()
    • getRelativeEndNs

      @Nullable public @Nullable Long getRelativeEndNs()
    • getRelativeEndCpuMs

      @Nullable public @Nullable Long getRelativeEndCpuMs()
    • getRelativeStartCpuMs

      @NotNull public @NotNull Long getRelativeStartCpuMs()
    • setId

      public void setId(@NotNull @NotNull String id)
    • setTraceId

      public void setTraceId(@NotNull @NotNull String traceId)
    • setName

      public void setName(@NotNull @NotNull String name)
    • setRelativeStartNs

      public void setRelativeStartNs(@NotNull @NotNull Long relativeStartNs)
    • setRelativeEndNs

      public void setRelativeEndNs(@Nullable @Nullable Long relativeEndNs)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException
    • getUnknown

      @Nullable public @Nullable Map<String,Object> getUnknown()
      Specified by:
      getUnknown in interface JsonUnknown
    • setUnknown

      public void setUnknown(@Nullable @Nullable Map<String,Object> unknown)
      Specified by:
      setUnknown in interface JsonUnknown