Class Performance

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class Performance
    extends EventTarget
    A JavaScript object for Performance.
    See Also:
    Serialized Form
    • Constructor Detail

      • Performance

        public Performance()
        Creates an instance.
    • Method Detail

      • getNavigation

        public PerformanceNavigation getNavigation()
        Returns the navigation property.
        Returns:
        the navigation property
      • getTiming

        public PerformanceTiming getTiming()
        Returns the timing property.
        Returns:
        the timing property
      • now

        public double now()
        Returns:
        a timestamp
      • getEntries

        public org.htmlunit.corejs.javascript.Scriptable getEntries()
        Returns:
        a list of all PerformanceEntry objects for the page. The list's members (entries) can be created by making performance marks or measures (for example by calling the mark() method) at explicit points in time. If you are only interested in performance entries of certain types or that have certain names, see getEntriesByType() and getEntriesByName().
      • getEntriesByName

        public org.htmlunit.corejs.javascript.Scriptable getEntriesByName()
        Returns:
        a list of all PerformanceEntry objects for the page. The list's members (entries) can be created by making performance marks or measures (for example by calling the mark() method) at explicit points in time. If you are only interested in performance entries of certain types or that have certain names, see getEntriesByType() and getEntriesByName().
      • getEntriesByType

        public org.htmlunit.corejs.javascript.Scriptable getEntriesByType()
        Returns:
        a list of PerformanceEntry objects for a given type. The list's members (entries) can be created by making performance marks or measures (for example by calling the mark() method) at explicit points in time.