Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding MicaController RuntimeProfiler recording #6694

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

RBrid
Copy link
Contributor

@RBrid RBrid commented Feb 9, 2022

Three things happening in this PR:

  • Recording the creation of the MicaController type for telemetry like we do with other WinUI 2.x controls/components. This is for internal work item 38097087.

  • Adding a convenient garbage collection button to MuxControlsTestApp's main page. This comes handy when investigating memory leak bugs in the various test pages.

  • Fixing the CalendarView test page which was broken after changing the time zone in the Settings app on the fly. The test CalendarView UI would not reflect the change correctly.

@RBrid RBrid requested a review from kmahone February 9, 2022 01:42
@RBrid RBrid self-assigned this Feb 9, 2022
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Feb 9, 2022
@RBrid
Copy link
Contributor Author

RBrid commented Feb 9, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RBrid
Copy link
Contributor Author

RBrid commented Feb 10, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -61,7 +61,7 @@
</ScrollViewer>
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center">
<CheckBox x:Name="LongAnimationsDisabled" AutomationProperties.AutomationId="LongAnimationsDisabled" Content="Long Animations Disabled" Checked="LongAnimationsDisabled_Checked" Unchecked="LongAnimationsDisabled_Unchecked" Margin="10,0,0,0"/>

<Button x:Name="GarbageCollection" Content="GarbageCollection" VerticalAlignment="Center" Click="GarbageCollection_Click" Margin="5"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be available when within a test page as well? like the render in lab frame dimensions button?

Copy link
Contributor Author

@RBrid RBrid Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this here so you can hit the button, go to a test page, come back, hit the button again, and there should be no leak.

But I see that moving it next to "Enable RTL" would allow garbage collection within the test page also.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK - I moved it to the TestFrame level.

@RBrid
Copy link
Contributor Author

RBrid commented Feb 11, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RBrid RBrid merged commit e5fa75c into main Feb 11, 2022
@RBrid RBrid deleted the user/regisb/MicaControllerTelemetry2 branch February 11, 2022 21:38
@StephenLPeters StephenLPeters added area-DevInternal Internal build infrastructure, code cleanup, engineering efficiency area-Materials Reveal, Acrylic, lighting, etc. team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DevInternal Internal build infrastructure, code cleanup, engineering efficiency area-Materials Reveal, Acrylic, lighting, etc. team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants