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
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
If all barrage performance logging is enabled by default, then table's description is used as TableKey unless overridden with thetable key
AttributeMap.withAttributes(Map)
attribute}.static final long
Explicitly set this parameter to flush performance metrics more frequently. -
Method Summary
Modifier and TypeMethodDescriptionstatic BarragePerformanceLog
static @Nullable String
getKeyFor
(@NotNull AttributeMap source, @NotNull Supplier<String> descriptionSupplier) Return the performance key for the provided source.static String
Return 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 key
AttributeMap.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
-