qtscript: Add performance monitoring code. See dump log after game to review script speed.