Windows Phone 7 : How to get Phone and Application memory information

If you want to get the memory information of your phone and application

 //Total Phone Memory (in bytes)
var totalMemory = Microsoft.Phone.Info.DeviceStatus.DeviceTotalMemory;
textBlock1.Text += Environment.NewLine + (totalMemory/(1024 * 1024)).ToString();

//Application Current Memory Usage (bytes)
var appCurrentMemoryUsage = Microsoft.Phone.Info.DeviceStatus.ApplicationCurrentMemoryUsage;
textBlock1.Text += Environment.NewLine + appCurrentMemoryUsage.ToString();

 

Namoskar!!!