add profiling to controller-dispatcher

This commit is contained in:
Seth Alves 2017-09-12 10:52:52 -07:00
parent a9aa6df93e
commit e9918ca599

View file

@ -26,7 +26,11 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
var TARGET_UPDATE_HZ = 60; // 50hz good enough, but we're using update
var BASIC_TIMER_INTERVAL_MS = 1000 / TARGET_UPDATE_HZ;
var PROFILE = true;
var PROFILE = false;
if (typeof Test !== "undefined") {
PROFILE = true;
}
function ControllerDispatcher() {
var _this = this;