Custom burn ins, additional stats

Hi all,

I followed the page below to setup a custom burn in which I got working. But I want to take it a little further and display the vram memory consumed per frame for example. Does anyone have any idea of where to start to get this implemented?