How to record viewport including performance stats?

I am trying to record (video capture) the standard viewport (of the UE5.1 Editor) during play including Stat UNITGRAPH performance plots and data printed on the viewport. Anyone knows how I can do that?