added debug kernel event count

This commit is contained in:
2023-03-20 16:24:25 +01:00
parent 05fa6203d1
commit 8991a99585
2 changed files with 41 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package lib;
import kernel.KernelEvents;
import kernel.log.Log;
import lua.NativeStringTools;
import lib.ui.Canvas;
@@ -38,6 +39,12 @@ class Debug {
Log.debug("\n" + lines.join("\n"));
}
#if Debug
public static function printKernelEventsCount(){
KernelEvents.instance.printListenerCount();
}
#end
#if webconsole
public static function printWeb(msg:String) {
HTTP.request("http://127.0.0.1:8080/"+Net.instance.networkID,msg);