Ostatnio pisałem na temat zdarzenia BindingFailed klasy DebuggerSettings. Jedną z niewielu właściwości tej klasy jest EnableFrameRateCounter.
public App() { InitializeComponent(); Suspending += OnSuspending; DebugSettings.EnableFrameRateCounter = true; }
Zmiana tej flagi na true sprawia, ze w górnym lewym rogu uruchomionej aplikacji pojawią się liczniki wydajności, które doskonale znają programiści Windows Phone.
Znaczenie poszczególnych wartości:
- Cp fps: the frames-per-second frame rate for the composition thread
- UI fps: the frames-per-second frame rate for the UI thread
- Memory: memory utilization for textures
- Batch: the count of surfaces that are sent to the graphics processing unit (GPU)
- Cp cpu: time in milliseconds spent on the composition thread’s processor
- UI cpu: time in milliseconds spent on the UI thread’s processor