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

Add profile stats to the CPU profiler #5340

Merged
merged 3 commits into from
Mar 2, 2023

Conversation

kenzieschmoll
Copy link
Member

Work towards #3861

Screenshot 2023-03-01 at 4 19 54 PM
Screenshot 2023-03-01 at 4 19 41 PM

While I was here, I also created a new file profiler_controls.dart and pulled some controls from cpu_profiler.dart out into the new file. This was to make the cpu_profiler.dart file more manageable.

@kenzieschmoll kenzieschmoll requested review from bkonyi and a team as code owners March 2, 2023 00:44
@@ -365,224 +367,62 @@ class _CpuProfilerState extends State<CpuProfiler>
}
}

class DisplayTreeGuidelinesToggle extends StatelessWidget {
Copy link
Member Author

Choose a reason for hiding this comment

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

all the deletes over here were moved to profiler_controls.dart with no functional changes. git diff picked this up weird unfortunately.

class DisplayTreeGuidelinesToggle extends StatelessWidget {
const DisplayTreeGuidelinesToggle();
// TODO(kenz): one improvement we could make on this is to show the denominator
// for filtered profiles (e.g. 'Sample count: 10/14), or to at least show the
Copy link
Member Author

Choose a reason for hiding this comment

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

review all the additions from here to the bottom of the file as new code - not a modification of code on the left.

@@ -0,0 +1,241 @@
// Copyright 2019 The Chromium Authors. All rights reserved.
Copy link
Member Author

Choose a reason for hiding this comment

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

no functional changes to this file. all moves from cpu_profiler.dart

Copy link
Contributor

@bkonyi bkonyi left a comment

Choose a reason for hiding this comment

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

LGTM with a couple of comments

@kenzieschmoll kenzieschmoll merged commit 9c64771 into flutter:master Mar 2, 2023
@kenzieschmoll kenzieschmoll deleted the cpu-stats branch March 2, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants