Memory Leak Detection APIs for Metro Apps.

May 30, 2013 at 12:43 PM

I am trying to capture memory snapshots for metro apps to detect memory leaks.

I run a particular workflow in the app multiple times and take memory snaps and then observe the difference in WorkingSetPrivateBytes.

However i noticed that WorkingSetPrivateBytes does not return correct memory values for metro apps. It would either give somewhat lower then the what task manager shows or sometimes way off what it should be.

Is there any reason why these APIs should not work well with metro apps?