benchmark GenerateInnerHTML
This commit is contained in:
parent
de18910a2c
commit
27b1ff99b3
4 changed files with 36 additions and 19 deletions
|
|
@ -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); */
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue