DEV: Print usedJSHeapSize to the console after QUnit run (#14462)

This is `console.log`'d to the browser console. run-qunit will print this to stdout. testem will not, so a custom reporter is implemented to print this message.

The `--enable-precise-memory-info` is added so that chrome provides high-resolution memory information. This API is not supported by firefox. The logic will degrade gracefully.
This commit is contained in:
David Taylor
2021-09-28 16:32:56 +01:00
committed by GitHub
parent 4dc14e3a3f
commit 4fa296c3ec
3 changed files with 54 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ async function runAllTests() {
"--disable-dev-shm-usage",
"--mute-audio",
"--window-size=1440,900",
"--enable-precise-memory-info",
],
};