From 184f1cee33c8d022e3c09822a65502077c3cdf5c Mon Sep 17 00:00:00 2001 From: Youen Toupin Date: Sat, 9 Apr 2022 20:05:22 +0200 Subject: [PATCH] added debug code to display how often mithril redraws --- WebApp/src/layout.tsx | 5 +++++ WebApp/src/pages/dashboard/dashboard-page.tsx | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/WebApp/src/layout.tsx b/WebApp/src/layout.tsx index f1497ef..89e3bf6 100644 --- a/WebApp/src/layout.tsx +++ b/WebApp/src/layout.tsx @@ -4,8 +4,11 @@ require("./layout.css"); export default class Layout { private menuActive = false; + private drawCount = 0; view(vnode: m.Vnode) { + this.drawCount = this.drawCount + 1; + return [