Class ProfilingItem.Builder
java.lang.Object
ai.docling.serve.api.convert.response.ProfilingItem.Builder
- Enclosing class:
- ProfilingItem
Builder for creating
ProfilingItem instances.
Generated by Lombok's @Builder annotation.
Builder methods:
scope(ProfilingScope)- Set the profiling scopecount(Integer)- Set the measurement counttimes(List<Double>)- Set the list of durationstime(Double)- Add a single duration (use with @Singular)startTimestamps(List<Instant>)- Set the list of start timestampsstartTimestamp(Instant)- Add a single start timestamp (use with @Singular)
-
Method Summary
Modifier and TypeMethodDescription@NonNull ProfilingItembuild()@NonNull ProfilingItem.Builder@NonNull ProfilingItem.Builder@NonNull ProfilingItem.BuilderNumber of measurements recorded.@NonNull ProfilingItem.Builderscope(ProfilingScope scope) Scope of the stage being measured.@NonNull ProfilingItem.BuilderstartTimestamp(Instant startTimestamp) @NonNull ProfilingItem.BuilderstartTimestamps(@NonNull Collection<? extends Instant> startTimestamps) @NonNull ProfilingItem.Builder@NonNull ProfilingItem.Buildertimes(@NonNull Collection<? extends Double> times) @NonNull StringtoString()
-
Method Details
-
scope
Scope of the stage being measured.- Parameters:
scope- the profiling scope- Returns:
this.
-
count
Number of measurements recorded.- Parameters:
count- the measurement count- Returns:
this.
-
time
-
times
-
clearTimes
-
startTimestamp
-
startTimestamps
public @NonNull ProfilingItem.Builder startTimestamps(@NonNull Collection<? extends Instant> startTimestamps) -
clearStartTimestamps
-
build
-
toString
-