locked
[UWP]Unit Test dummy window question RRS feed

  • Question

  • I always wanted to know what are the numbers in the left top corner of the dummy window when I debug unit tests:

    And what are the labels for? They do not make sense at all.


    Ignorance is blissful

    Wednesday, March 14, 2018 5:39 PM

Answers

  • Hi   Neo the 1,

    The appears on the upper left of the screen is your app frame-rate and per-frame CPU usage info.

    **App fps: ** The app's UI thread frame rate, in frames per second.
    **App CPU: ** The CPU usage of the app's UI thread per frame, in milliseconds.

    These certain aspects of the app behave will help you to check your program's performance, and will run better on different devices.

    see the DebugSettings
    https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.debugsettings

    Best Regards,

    Yong Lu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 15, 2018 6:34 AM

All replies

  • Hello,

    It display frame-rate and per-frame CPU usage info. It automatically added to beginning of  OnLaunched method.     VS 2015 also add it standard UWP projects (1511 , 1607) 

    #if DEBUG
                if (System.Diagnostics.Debugger.IsAttached)
                {
                    this.DebugSettings.EnableFrameRateCounter = true;
                }
    #endif


    Make the community better together

    Wednesday, March 14, 2018 7:12 PM
  • Thanks for the tip. But what is frame rate for? It sounds like something for game development.

    Ignorance is blissful

    Wednesday, March 14, 2018 7:58 PM
  • Hi   Neo the 1,

    The appears on the upper left of the screen is your app frame-rate and per-frame CPU usage info.

    **App fps: ** The app's UI thread frame rate, in frames per second.
    **App CPU: ** The CPU usage of the app's UI thread per frame, in milliseconds.

    These certain aspects of the app behave will help you to check your program's performance, and will run better on different devices.

    see the DebugSettings
    https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.debugsettings

    Best Regards,

    Yong Lu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 15, 2018 6:34 AM