added total draw time and stack trace for errors in dev mode