Hello,
Welcome to Microsoft Q&A!
How to get current memory usage by OS/device in a UWP Windows10 app programmatically?
Currently, there is no API in UWP that could get the memory usage of the system. .NET APIs like PerformanceCounter are not support in UWP.
You might need to take a look at GlobalMemoryStatusEx function which is a Win32 API that could be used in UWP. Based on the document, this API should be able to get the memory usage of the system that you required. Since it's a Win32 API, there is no code sample about how to use it in UWP app. You need to do it by yourself.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.