benchmark GenerateInnerHTML

This commit is contained in:
ReznoRMichael 2021-07-12 00:50:04 +02:00
commit 27b1ff99b3
4 changed files with 36 additions and 19 deletions

View file

@ -115,6 +115,7 @@ function ProcessFileObject() {
// finish total and show benchmark
benchmarkTimes.Total.timeEnd = new Date();
Benchmark(benchmarkTimes);
/* console.info("Total time (ms) =", benchTotal - benchLSFBegin); */

View file

@ -1,3 +1,7 @@
import {
benchmarkTimes
} from "./HKCheckCompletion.js";
// ---------------- Load image files (necessary for Webpack) ----------------- //
import HEALTH_MASK_IMAGE from "../img/health-mask.png";
@ -128,6 +132,9 @@ function CompletionHTML(jsObj, hkGameCompletion) {
function GenerateInnerHTML(db) {
// start benchmarking
benchmarkTimes.GenerateInnerHTML.timeStart = new Date();
let sections = db.sections;
@ -457,6 +464,9 @@ function GenerateInnerHTML(db) {
/* Final single HTML access and fill here */
document.getElementById("generated").innerHTML = finalHTMLFill;
// finish benchmarking
benchmarkTimes.GenerateInnerHTML.timeEnd = new Date();
}
function SectionStart(section) {