fune/testing/web-platform/tests/js-self-profiling/concurrent-profilers.https.html
Andrew Comminos b03978edaa Bug 1720233 [wpt PR 29645] - Reattempt upstreaming of JS Self-Profiling API WPTs, a=testonly
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
2021-07-19 15:59:40 +00:00

25 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>