added debug kernel event count
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user