summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/js-self-profiling/concurrent-profilers.https.html
blob: 26f37ec8bdcd8b67173c3b83b285ed1e291870a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!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>