It shall be the duty of the judge to control all proceedings during the trial, and to limit the introduction of evidence and the argument of counsel to relevant and material matters, with a view to the expeditious and effective ascertainment of the truth regarding the matters involved.
Ca. Pen. Code § 1044