Screenshot with heads up display

I am working on a python script that needs to take a screenshot of the editor with the output of the ‘stat GPU’ command visible. I tried using ‘HighResShot 2’ but it excludes all the overlayed information that I am trying to capture. Does anyone know how to get a screenshot from the editor with that overlayed information?

Have you found a solution now? I had the same problem at work.