testing/web-platform/tests/interfaces/user-timing.idl
author autofoolip <auto@foolip.org>
Thu, 31 Jan 2019 18:55:26 +0000
changeset 457991 931a2fa4b4fc5ffcbf3f3cf5b02ebd58630c38c6
parent 457935 dc50cb2aea515cb2f5e735a07630cbafb6b9ea79
child 470722 7669eaa31cf14d9125d595a2fc03df6ebc1569a0
permissions -rw-r--r--
Bug 1523562 [wpt PR 14856] - Update interfaces/user-timing.idl, a=testonly Automatic update from web-platform-tests Update interfaces/user-timing.idl (#14856) Source: https://github.com/tidoust/reffy-reports/blob/cc129d4/whatwg/idl/user-timing.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/479750518 -- wpt-commits: 6b940f4a127dfdc5e5bda65f90123e9dce3aa356 wpt-pr: 14856

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: User Timing Level 3 (https://w3c.github.io/user-timing/)

dictionary PerformanceMarkOptions {
    any detail = null;
    DOMHighResTimeStamp startTime;
};

dictionary PerformanceMeasureOptions {
    any detail = null;
    (DOMString or DOMHighResTimeStamp) startTime;
    DOMHighResTimeStamp duration;
    (DOMString or DOMHighResTimeStamp) endTime;
};

partial interface Performance {
    PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions);
    void clearMarks(optional DOMString markName);
    PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions, optional DOMString endMark);
    void clearMeasures(optional DOMString measureName);
};

[Exposed=(Window,Worker),
 Constructor(DOMString markName, optional PerformanceMarkOptions markOptions)]
interface PerformanceMark : PerformanceEntry {
  readonly attribute any detail;
};

[Exposed=(Window,Worker)]
interface PerformanceMeasure : PerformanceEntry {
  readonly attribute any detail;
};