Class ProfilingItem

java.lang.Object
ai.docling.serve.api.convert.response.ProfilingItem

public class ProfilingItem extends Object
Represents per-stage timing measurements produced during a document conversion.

Serialization uses JsonInclude.Include.NON_EMPTY, so nulls and empty collections are omitted from JSON output.

  • Method Details

    • builder

      public static @NonNull ProfilingItem.Builder builder()
    • toBuilder

      public @NonNull ProfilingItem.Builder toBuilder()
    • getScope

      public ProfilingScope getScope()
      Scope of the stage being measured.
      Returns:
      the profiling scope
    • getCount

      public Integer getCount()
      Number of measurements recorded.
      Returns:
      the measurement count
    • getTimes

      public List<Double> getTimes()
      Per-measurement durations in seconds.
      Returns:
      the list of durations
    • getStartTimestamps

      public List<Instant> getStartTimestamps()
      Start timestamps for each measurement.
      Returns:
      the list of start timestamps
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object