Merge pull request #2419 from MartinFournier/fix/mem

Add save file warning for detailed ram usage
This commit is contained in:
hydroflame 2022-01-06 21:28:52 -05:00 committed by GitHub
commit 3bb3363bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,6 +43,11 @@ export function mem(
for (const entry of verboseEntries) {
terminal.print(`${numeralWrapper.formatRAM(entry.cost * numThreads).padStart(8)} | ${entry.name} (${entry.type})`);
}
if (ramUsage > 0 && verboseEntries.length === 0) {
// Let's warn the user that he might need to save his script again to generate the detailed entries
terminal.warn('You might have to open & save this script to see the detailed RAM usage information.');
}
} catch (e) {
terminal.error(e + "");
}