Automatic update from web-platform-tests Reattempt upstreaming of JS Self-Profiling API WPTs Wait for a delay of SAMPLE_INTERVAL + 500ms to collect samples, ensuring that we're more robust to flakiness on Mac OS CI bots. Bug: 956688 Change-Id: If39f1d59a09857d5bcb52c5c5d03782de4055b30 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3021557 Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Commit-Queue: Andrew Comminos <acomminos@fb.com> Cr-Commit-Position: refs/heads/master@{#901174} -- wpt-commits: 9d6d7f8c5356ab9fc4b49656323ce196f1176613 wpt-pr: 29645
26 lines
624 B
HTML
26 lines
624 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
promise_test(async t => {
|
|
const profiler_a = new Profiler({
|
|
sampleInterval: 10,
|
|
maxBufferSize: Number.MAX_SAFE_INTEGER,
|
|
});
|
|
|
|
const profiler_b = new Profiler({
|
|
sampleInterval: 10,
|
|
maxBufferSize: Number.MAX_SAFE_INTEGER,
|
|
});
|
|
|
|
const trace_b = await profiler_b.stop();
|
|
const trace_a = await profiler_a.stop();
|
|
}, 'concurrent profilers should be supported');
|
|
</script>
|
|
</body>
|
|
</html>
|