Which type of memory das 'stat memory' profile?

I’m trying to get familiar with profiling via stat commands. One of these is the ‘stat memory’ command, which shows exclusively(?) rendering related memory consumption. However I am now unsure: does it show consumption in RAM or on the GPU?
The documentation is a bit sparce and different resources weren’t unambiguous about this.