Module org.htmlunit

Class PerformanceTiming

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

public class PerformanceTiming extends HtmlUnitScriptable
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_CONST

    Fields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner

    isSealed

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the connectEnd property.
    long
    Returns the value of the connectStart property.
    long
    Returns the value of the domainLookupEnd property.
    long
    Returns the value of the domainLookupStart property.
    long
    Returns the value of the domComplete property.
    long
    Returns the value of the domContentLoadedEventEnd property.
    long
    Returns the value of the domContentLoadedEventStart property.
    long
    Returns the value of the domInteractive property.
    long
    Returns the value of the domLoading property.
    long
    Returns the value of the fetchStart property.
    long
    Returns the value of the loadEventEnd property.
    long
    Returns the value of the loadEventStart property.
    long
    Returns the value of the navigationStart property.
    long
    Returns the value of the redirectEnd property.
    long
    Returns the value of the redirectStart property.
    long
    Returns the value of the responseEnd property.
    long
    Returns the value of the responseStart property.
    long
    Returns the value of the secureConnectionStart property.
    long
    Returns the value of the unloadEventEnd property.
    long
    Returns the value of the unloadEventStart property.
    void
    Creates an instance of this object.

    Methods 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, size

    Methods 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, writeMaps

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.htmlunit.corejs.javascript.Scriptable

    get, getIds, has, has

    Methods 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 the domainLookupStart property.
      Returns:
      the timestamp immediately before the browser starts the domain name lookup
    • getDomainLookupEnd

      public long getDomainLookupEnd()
      Returns the value of the domainLookupEnd property.
      Returns:
      the timestamp immediately after the browser finishes the domain name lookup
    • getConnectStart

      public long getConnectStart()
      Returns the value of the connectStart property.
      Returns:
      the timestamp immediately before the browser starts to establish the connection to the server
    • getConnectEnd

      public long getConnectEnd()
      Returns the value of the connectEnd property.
      Returns:
      the timestamp immediately after the browser finishes establishing the connection to the server
    • getResponseStart

      public long getResponseStart()
      Returns the value of the responseStart property.
      Returns:
      the timestamp immediately after the browser receives the first byte of the response
    • getResponseEnd

      public long getResponseEnd()
      Returns the value of the responseEnd property.
      Returns:
      the timestamp immediately after the browser receives the last byte of the response
    • getSecureConnectionStart

      public long getSecureConnectionStart()
      Returns the value of the secureConnectionStart property.
      Returns:
      the timestamp immediately before the browser starts the handshake process to secure the current connection
    • getUnloadEventStart

      public long getUnloadEventStart()
      Returns the value of the unloadEventStart property.
      Returns:
      the timestamp immediately before the unload event is fired
    • getUnloadEventEnd

      public long getUnloadEventEnd()
      Returns the value of the unloadEventEnd property.
      Returns:
      the timestamp immediately after the unload event completes
    • getRedirectStart

      public long getRedirectStart()
      Returns the value of the redirectStart property.
      Returns:
      the timestamp of the start of the first HTTP redirect
    • getRedirectEnd

      public long getRedirectEnd()
      Returns the value of the redirectEnd property.
      Returns:
      the timestamp immediately after the last redirect response is received
    • getDomContentLoadedEventStart

      public long getDomContentLoadedEventStart()
      Returns the value of the domContentLoadedEventStart property.
      Returns:
      the timestamp immediately before the DOMContentLoaded event is fired
    • getDomLoading

      public long getDomLoading()
      Returns the value of the domLoading property.
      Returns:
      the timestamp immediately before the browser sets the document readyState to loading
    • getDomInteractive

      public long getDomInteractive()
      Returns the value of the domInteractive property.
      Returns:
      the timestamp immediately before the browser sets the document readyState to interactive
    • getDomContentLoadedEventEnd

      public long getDomContentLoadedEventEnd()
      Returns the value of the domContentLoadedEventEnd property.
      Returns:
      the timestamp immediately after the DOMContentLoaded event completes
    • getDomComplete

      public long getDomComplete()
      Returns the value of the domComplete property.
      Returns:
      the timestamp immediately before the browser sets the document readyState to complete
    • getLoadEventStart

      public long getLoadEventStart()
      Returns the value of the loadEventStart property.
      Returns:
      the timestamp immediately before the load event is fired
    • getLoadEventEnd

      public long getLoadEventEnd()
      Returns the value of the loadEventEnd property.
      Returns:
      the timestamp immediately after the load event completes
    • getNavigationStart

      public long getNavigationStart()
      Returns the value of the navigationStart property.
      Returns:
      the timestamp immediately after the previous document's unload event completes
    • getFetchStart

      public long getFetchStart()
      Returns the value of the fetchStart property.
      Returns:
      the timestamp immediately before the browser starts to fetch the resource