[Olena-patches] 2787: Add trace::stop and trace::resume.