blob: 5087066076ac401da4c2c0f96e02767f5b28c3e6 [file] [log] [blame]
<!DOCTYPE html>
<script>
function createPerformanceObserver(FunctionConstructor = Function) {
const performanceObserver = new parent.PerformanceObserver(new FunctionConstructor(`
this.callbackInvocations++;
`));
performanceObserver.callbackInvocations = 0;
performanceObserver.observe({ entryTypes: ["mark"] });
return performanceObserver;
}
</script>