Class DebugOverflowSettings
- All Implemented Interfaces:
HasHandlers
debugging overflow
. The general approach is that we track
a maximum of maxTrackedOverflows
per
canvas across a period of trackingDuration
,
and if a canvas overflows more than selfOverflowThreshold
times not due to any child (checked by looking at the visible rect
of each child, then we log a message from the affected
canvas reporting the threshold was exceeded.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLogging level to use when reporting that theoverflow threshold
was exceeded.How often to log theoverflow threshold
being crossed, expressed in milliseconds.int
Maximum number of overflows to track for each canvas when debugging overflow.static DebugOverflowSettings
getOrCreateRef
(JavaScriptObject jsObj) int
At what threshold should excessive self-overflows be reported? This value must not exceedmaxTrackedOverflows
.int
Maximum time interval past which overflow data will be discarded when debugging overflow, measured in milliseconds.setLoggingLevel
(LogPriority loggingLevel) Logging level to use when reporting that theoverflow threshold
was exceeded.setLoggingTimeout
(Integer loggingTimeout) How often to log theoverflow threshold
being crossed, expressed in milliseconds.setMaxTrackedOverflows
(int maxTrackedOverflows) Maximum number of overflows to track for each canvas when debugging overflow.setSelfOverflowThreshold
(int selfOverflowThreshold) At what threshold should excessive self-overflows be reported? This value must not exceedmaxTrackedOverflows
.setTrackingDuration
(int trackingDuration) Maximum time interval past which overflow data will be discarded when debugging overflow, measured in milliseconds.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
DebugOverflowSettings
public DebugOverflowSettings() -
DebugOverflowSettings
-
-
Method Details
-
getOrCreateRef
-
setLoggingLevel
Logging level to use when reporting that theoverflow threshold
was exceeded.- Parameters:
loggingLevel
- New loggingLevel value. Default value is Log.WARN- Returns:
DebugOverflowSettings
instance, for chaining setter calls
-
getLoggingLevel
Logging level to use when reporting that theoverflow threshold
was exceeded.- Returns:
- Current loggingLevel value. Default value is Log.WARN
-
setLoggingTimeout
How often to log theoverflow threshold
being crossed, expressed in milliseconds. A setting of null or zero disable the limitation.If this property is a positive number, and fewer than that many milliseconds have elapsed since the last time we logged an overflow problem for a canvas, then logging will be skipped for that canvas.
- Parameters:
loggingTimeout
- New loggingTimeout value. Default value is null- Returns:
DebugOverflowSettings
instance, for chaining setter calls
-
getLoggingTimeout
How often to log theoverflow threshold
being crossed, expressed in milliseconds. A setting of null or zero disable the limitation.If this property is a positive number, and fewer than that many milliseconds have elapsed since the last time we logged an overflow problem for a canvas, then logging will be skipped for that canvas.
- Returns:
- Current loggingTimeout value. Default value is null
-
setMaxTrackedOverflows
Maximum number of overflows to track for each canvas when debugging overflow.- Parameters:
maxTrackedOverflows
- New maxTrackedOverflows value. Default value is 10- Returns:
DebugOverflowSettings
instance, for chaining setter calls
-
getMaxTrackedOverflows
public int getMaxTrackedOverflows()Maximum number of overflows to track for each canvas when debugging overflow.- Returns:
- Current maxTrackedOverflows value. Default value is 10
-
setSelfOverflowThreshold
At what threshold should excessive self-overflows be reported? This value must not exceedmaxTrackedOverflows
.- Parameters:
selfOverflowThreshold
- New selfOverflowThreshold value. Default value is 5- Returns:
DebugOverflowSettings
instance, for chaining setter calls
-
getSelfOverflowThreshold
public int getSelfOverflowThreshold()At what threshold should excessive self-overflows be reported? This value must not exceedmaxTrackedOverflows
.- Returns:
- Current selfOverflowThreshold value. Default value is 5
-
setTrackingDuration
Maximum time interval past which overflow data will be discarded when debugging overflow, measured in milliseconds.- Parameters:
trackingDuration
- New trackingDuration value. Default value is 10000- Returns:
DebugOverflowSettings
instance, for chaining setter calls
-
getTrackingDuration
public int getTrackingDuration()Maximum time interval past which overflow data will be discarded when debugging overflow, measured in milliseconds.- Returns:
- Current trackingDuration value. Default value is 10000
-