From dc4e54a94b7528416cf58eb88d0ae7f750a28e55 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 21 Feb 2024 15:40:15 -0800 Subject: [PATCH] Cleanup cpuprofiler.js. NFC (#21387) - Use mathod syntax - Cleanup long line --- src/cpuprofiler.js | 192 ++++++++++++++++++++++++++++++--------------- 1 file changed, 129 insertions(+), 63 deletions(-) diff --git a/src/cpuprofiler.js b/src/cpuprofiler.js index f8f919431afe..f55ebec78df3 100644 --- a/src/cpuprofiler.js +++ b/src/cpuprofiler.js @@ -4,12 +4,16 @@ * SPDX-License-Identifier: MIT */ -// cpuprofiler.js is an interactive CPU execution profiler which measures the time spent in executing code that utilizes requestAnimationFrame(), setTimeout() and/or setInterval() handlers to run. -// Visit https://github.com/emscripten-core/emscripten for the latest version. - -// performance.now() might get faked later (this is done in the openwebgames.com test harness), so save the real one for cpu profiler. -// However, in Safari, assigning to the performance object will mysteriously vanish in other imported .js