servo/tests/wpt/web-platform-tests/js-self-profiling/idlharness.any.js

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,
});
}
);