Package io.deephaven.extensions.barrage
Class BarragePerformanceLog
java.lang.Object
io.deephaven.extensions.barrage.BarragePerformanceLog
Enable barrage performance metrics by setting the
BarragePerformanceLog.enableAll configuration property, or
by adding the table key as an
AttributeMap.withAttributes(Map) attribute} to the table.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanIf all barrage performance logging is enabled by default, then table's description is used as TableKey unless overridden with thetable keyAttributeMap.withAttributes(Map)attribute}.static final longExplicitly set this parameter to flush performance metrics more frequently. -
Method Summary
Modifier and TypeMethodDescriptionstatic BarragePerformanceLogstatic @Nullable StringgetKeyFor(@NotNull AttributeMap source, @NotNull Supplier<String> descriptionSupplier) Return the performance key for the provided source.static StringReturn the performance key for the provided table.
-
Field Details
-
ALL_PERFORMANCE_ENABLED
public static final boolean ALL_PERFORMANCE_ENABLEDIf all barrage performance logging is enabled by default, then table's description is used as TableKey unless overridden with thetable keyAttributeMap.withAttributes(Map)attribute}. -
CYCLE_DURATION_MILLIS
public static final long CYCLE_DURATION_MILLISExplicitly set this parameter to flush performance metrics more frequently.
-
-
Method Details
-
getInstance
-
getKeyFor
Return the performance key for the provided table.- Parameters:
table- the table that will be logged- Returns:
- the table key or null if no entry should not be logged
-
getKeyFor
@Nullable public static @Nullable String getKeyFor(@NotNull @NotNull AttributeMap source, @NotNull @NotNull Supplier<String> descriptionSupplier) Return the performance key for the provided source.- Parameters:
source- the source that will be loggeddescriptionSupplier- supplier for a description of the source- Returns:
- the table key or null if no entry should not be logged
-
getSubscriptionTable
-
getSubscriptionLogger
-
getSnapshotTable
-
getSnapshotLogger
-