简体   繁体   中英

How to get App Memory Usage in Windows Store 8.1 app?

In my universal Windows Phone 8.1 app I use Windows.System.MemoryManager.AppMemoryUsage and Windows.System.MemoryManager.AppMemoryUsageLimit to get used/free memory for debug purposes. But in Windows 8.1 version of it Windows.System.MemoryManager api is not found. When I launch app I see in VS2015 memory usage, but I'd prefer to see it in app when launched standalone.

Is there a way to get it in Win 8.1 (not Win 10)?

For Windows 8.0/8.1 app, there does not exist such a API. For debug purposes, the only we can do currently is to check the health report in Windows Dev Center. Please refer to the answer in this MSDN post by MSFT @Franklin Chen to know more details.

I can understand this could affect your achievement of your Windows 8.1 Store app development. You may submit a feature request if you really need it at uservoice site so that MSFT might add it to their to-do-list.

You can click the combobox to check the request status like below: 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM