flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.28k stars 272 forks source link

Show RAM and VRAM usage of the application itself #1237

Open shmerl opened 6 months ago

shmerl commented 6 months ago

Currently mangohud shows system RAM / VRAM utilization. It would be nice if possible to see how much memory the actual program that runs with the HUD uses.

shmerl commented 2 months ago

Any news on this? Showing total is not a very easy way to understand how application itself affects VRAM.

Lassebq commented 2 months ago

You can use procmem for process RAM usage. Nothing for vram sadly. Now that you mention it I would like to see process vram too.

shmerl commented 2 months ago

Thanks for the pointer about procmem

shmerl commented 2 months ago

I must be missing something. I tired adding ...,procmem,... to the list of options I'm using, but it's not showing me anything about it.

flightlessmango commented 2 months ago

It appears procmem is only usable with legacy_layout=0, this should probably be changed tho

shmerl commented 2 months ago

That helped indeed. What does it do exactly? It's not documented in readme besides being mentioned for exec.

flightlessmango commented 2 months ago

It only displays the elements that are in the config and it allows you to re-order the elements

shmerl commented 2 months ago

That should probably be a default.

shmerl commented 2 months ago

Looks like a bunch of options aren't working with legacy_layout=0?

Tried something like this:

legacy_layout=0,cpu_load_change,cpu_temp,gpu_load_change,gpu_temp,core_load,core_load_change

But it only shows cores load in result.

flightlessmango commented 2 months ago

For example to see gpu information you need to add gpu_stats

shmerl commented 2 months ago

That worked, thanks. Is it possible to read total VRAM of the process in general?

Lassebq commented 2 months ago

nvtop does have per process vram. Should be possible.

flightlessmango commented 2 months ago

Yeah there's no issues implementing it, just time to write it