java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.performance.PerformanceTiming
- All Implemented Interfaces:
Serializable,Cloneable,org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
JavaScript host object for
PerformanceTiming.
This implementation is a simple mock for the moment.- Author:
- Ahmed Ashour, Ronald Brill
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction -
Field Summary
Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconnectEndproperty.longReturns the value of theconnectStartproperty.longReturns the value of thedomainLookupEndproperty.longReturns the value of thedomainLookupStartproperty.longReturns the value of thedomCompleteproperty.longReturns the value of thedomContentLoadedEventEndproperty.longReturns the value of thedomContentLoadedEventStartproperty.longReturns the value of thedomInteractiveproperty.longReturns the value of thedomLoadingproperty.longReturns the value of thefetchStartproperty.longReturns the value of theloadEventEndproperty.longReturns the value of theloadEventStartproperty.longReturns the value of thenavigationStartproperty.longReturns the value of theredirectEndproperty.longReturns the value of theredirectStartproperty.longReturns the value of theresponseEndproperty.longReturns the value of theresponseStartproperty.longReturns the value of thesecureConnectionStartproperty.longReturns the value of theunloadEventEndproperty.longReturns the value of theunloadEventStartproperty.voidCreates an instance of this object.Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowOrWorkerGlobalScope, getWithPreemption, has, hasInstance, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, getIds, has, hasMethods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable
get, has
-
Constructor Details
-
PerformanceTiming
public PerformanceTiming()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()Creates an instance of this object. -
getDomainLookupStart
public long getDomainLookupStart()Returns the value of thedomainLookupStartproperty.- Returns:
- the timestamp immediately before the browser starts the domain name lookup
-
getDomainLookupEnd
public long getDomainLookupEnd()Returns the value of thedomainLookupEndproperty.- Returns:
- the timestamp immediately after the browser finishes the domain name lookup
-
getConnectStart
public long getConnectStart()Returns the value of theconnectStartproperty.- Returns:
- the timestamp immediately before the browser starts to establish the connection to the server
-
getConnectEnd
public long getConnectEnd()Returns the value of theconnectEndproperty.- Returns:
- the timestamp immediately after the browser finishes establishing the connection to the server
-
getResponseStart
public long getResponseStart()Returns the value of theresponseStartproperty.- Returns:
- the timestamp immediately after the browser receives the first byte of the response
-
getResponseEnd
public long getResponseEnd()Returns the value of theresponseEndproperty.- Returns:
- the timestamp immediately after the browser receives the last byte of the response
-
getSecureConnectionStart
public long getSecureConnectionStart()Returns the value of thesecureConnectionStartproperty.- Returns:
- the timestamp immediately before the browser starts the handshake process to secure the current connection
-
getUnloadEventStart
public long getUnloadEventStart()Returns the value of theunloadEventStartproperty.- Returns:
- the timestamp immediately before the unload event is fired
-
getUnloadEventEnd
public long getUnloadEventEnd()Returns the value of theunloadEventEndproperty.- Returns:
- the timestamp immediately after the unload event completes
-
getRedirectStart
public long getRedirectStart()Returns the value of theredirectStartproperty.- Returns:
- the timestamp of the start of the first HTTP redirect
-
getRedirectEnd
public long getRedirectEnd()Returns the value of theredirectEndproperty.- Returns:
- the timestamp immediately after the last redirect response is received
-
getDomContentLoadedEventStart
public long getDomContentLoadedEventStart()Returns the value of thedomContentLoadedEventStartproperty.- Returns:
- the timestamp immediately before the
DOMContentLoadedevent is fired
-
getDomLoading
public long getDomLoading()Returns the value of thedomLoadingproperty.- Returns:
- the timestamp immediately before the browser sets the document readyState to
loading
-
getDomInteractive
public long getDomInteractive()Returns the value of thedomInteractiveproperty.- Returns:
- the timestamp immediately before the browser sets the document readyState to
interactive
-
getDomContentLoadedEventEnd
public long getDomContentLoadedEventEnd()Returns the value of thedomContentLoadedEventEndproperty.- Returns:
- the timestamp immediately after the
DOMContentLoadedevent completes
-
getDomComplete
public long getDomComplete()Returns the value of thedomCompleteproperty.- Returns:
- the timestamp immediately before the browser sets the document readyState to
complete
-
getLoadEventStart
public long getLoadEventStart()Returns the value of theloadEventStartproperty.- Returns:
- the timestamp immediately before the load event is fired
-
getLoadEventEnd
public long getLoadEventEnd()Returns the value of theloadEventEndproperty.- Returns:
- the timestamp immediately after the load event completes
-
getFetchStart
public long getFetchStart()Returns the value of thefetchStartproperty.- Returns:
- the timestamp immediately before the browser starts to fetch the resource
-