Backport Media Viewer performance tracking

Bug: T76035
Change-Id: Ic606155e42c6f9c41b1fe4e92180e5ae2ec618f7