2010-10-13 84 views

回答

5

您可以從Device Extended Properties獲得IN CODE的內存信息。感興趣
值是:

DeviceExtendedProperties.GetValue("DeviceTotalMemory"); 
DeviceExtendedProperties.GetValue("ApplicationCurrentMemoryUsage"); 
DeviceExtendedProperties.GetValue("ApplicationPeakMemoryUsage"); 

所有這些爲多頭。

不幸的是,關於CPU的信息目前不可用。

2

您可以通過使用使計數器:

Application.Current.Host.Settings.EnableFrameRateCounter = true; 
Microsoft.Phone.Shell.SystemTray.IsVisible = false; 

有關於如何通過Jeff Wilcox閱讀日期的好文章。

還有一個用於Windows Phone 7的分析器。如果您使用的是一個DLL,它是免費的。你可以download it here

相關問題