public class DebugOverflowSettings extends DataClass
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.
factoryCreated, factoryProperties| Constructor and Description |
|---|
DebugOverflowSettings() |
DebugOverflowSettings(com.google.gwt.core.client.JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
LogPriority |
getLoggingLevel()
Logging level to use when reporting that the
overflow threshold was exceeded. |
java.lang.Integer |
getLoggingTimeout()
How often to log the
overflow threshold
being crossed, expressed in milliseconds. |
int |
getMaxTrackedOverflows()
Maximum number of overflows to track for each canvas when debugging overflow.
|
static DebugOverflowSettings |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
int |
getSelfOverflowThreshold()
At what threshold should excessive self-overflows be reported? This value must not exceed
maxTrackedOverflows. |
int |
getTrackingDuration()
Maximum time interval past which overflow data will be discarded when debugging overflow, measured in milliseconds.
|
DebugOverflowSettings |
setLoggingLevel(LogPriority loggingLevel)
Logging level to use when reporting that the
overflow threshold was exceeded. |
DebugOverflowSettings |
setLoggingTimeout(java.lang.Integer loggingTimeout)
How often to log the
overflow threshold
being crossed, expressed in milliseconds. |
DebugOverflowSettings |
setMaxTrackedOverflows(int maxTrackedOverflows)
Maximum number of overflows to track for each canvas when debugging overflow.
|
DebugOverflowSettings |
setSelfOverflowThreshold(int selfOverflowThreshold)
At what threshold should excessive self-overflows be reported? This value must not exceed
maxTrackedOverflows. |
DebugOverflowSettings |
setTrackingDuration(int trackingDuration)
Maximum time interval past which overflow data will be discarded when debugging overflow, measured in milliseconds.
|
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, setFactoryCreatedpublic DebugOverflowSettings()
public DebugOverflowSettings(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DebugOverflowSettings getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public DebugOverflowSettings setLoggingLevel(LogPriority loggingLevel)
overflow threshold was exceeded.loggingLevel - New loggingLevel value. Default value is Log.WARNDebugOverflowSettings instance, for chaining setter callspublic LogPriority getLoggingLevel()
overflow threshold was exceeded.public DebugOverflowSettings setLoggingTimeout(java.lang.Integer loggingTimeout)
overflow 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.
loggingTimeout - New loggingTimeout value. Default value is nullDebugOverflowSettings instance, for chaining setter callspublic java.lang.Integer getLoggingTimeout()
overflow 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.
public DebugOverflowSettings setMaxTrackedOverflows(int maxTrackedOverflows)
maxTrackedOverflows - New maxTrackedOverflows value. Default value is 10DebugOverflowSettings instance, for chaining setter callspublic int getMaxTrackedOverflows()
public DebugOverflowSettings setSelfOverflowThreshold(int selfOverflowThreshold)
maxTrackedOverflows.selfOverflowThreshold - New selfOverflowThreshold value. Default value is 5DebugOverflowSettings instance, for chaining setter callspublic int getSelfOverflowThreshold()
maxTrackedOverflows.public DebugOverflowSettings setTrackingDuration(int trackingDuration)
trackingDuration - New trackingDuration value. Default value is 10000DebugOverflowSettings instance, for chaining setter callspublic int getTrackingDuration()