mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-tests Add interfaces/js-self-profiling.idl and test (#21495) Closes https://github.com/web-platform-tests/wpt/pull/21298 -- wpt-commits: 719a6368cc7a739949e4ecf464d70001d53f8b1d wpt-pr: 21495
19 lines
371 B
JavaScript
19 lines
371 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['js-self-profiling'],
|
|
['hr-time', 'dom'],
|
|
async idl_array => {
|
|
idl_array.add_objects({
|
|
Performance: ['performance'],
|
|
Profiler: ['profiler'],
|
|
});
|
|
|
|
self.profiler = await performance.profile({
|
|
sampleInterval: 1,
|
|
});
|
|
}
|
|
);
|