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 SkiaPerfPoint and FlutterEngineMetricPoint #70153

Merged
merged 3 commits into from Nov 12, 2020

Conversation

liyuqian
Copy link
Contributor

Unit tests that cover their translations are also added.

@flutter-dashboard flutter-dashboard bot added the team Infra upgrades, team productivity, code health, technical debt. See also team: labels. label Nov 10, 2020
@google-cla google-cla bot added the cla: yes label Nov 10, 2020
Unit tests that cover their translations are also added.
import 'package:metrics_center/src/common.dart';

/// Convenient class to capture the benchmarks in the Flutter engine repo.
class FlutterEngineMetricPoint extends MetricPoint {
Copy link
Contributor

Choose a reason for hiding this comment

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

a file named flutter_engine.dart seems more clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm planning to add more Flutter-related but non-engine-related classes such as FlutterDestination to flutter.dart. I can also create a flutter directory and put flutter_engine.dart and other files inside it. For now, I don't see many files or content to be needed so I adopted a single flutter.dart for now. I'm happy to change either now or in the future if you still prefer it considering the upcoming changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation. Then it should be fine to use flutter.

const String kSkiaPerfResultsKey = 'results';
const String kSkiaPerfValueKey = 'value';
const String kSkiaPerfOptionsKey = 'options';

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Comment on lines +20 to +21
/// The result is cached in memory so querying the same thing again in the
/// same process is fast.
Copy link
Contributor

Choose a reason for hiding this comment

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

From the test, 1000 queries per second is needed. Shall the doc reflect that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, added.

const String kMetric1 = 'flutter_repo_batch_maximum';
const String kMetric2 = 'flutter_repo_watch_maximum';

final MetricPoint cocoonPointRev1Metric1 = MetricPoint(
Copy link
Contributor

Choose a reason for hiding this comment

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

How a cocoon Point is related to skiaperf point and flutterengine point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cocoon points (framework or device lab perf metrics) are not related to FlutterEnginePoint. Cocoon points should be able to convert to SkiaPerfPoint. I'll probably add more documentations when I migrate CocoonSource / BenchmarkMetricPoint in the future.

Copy link
Contributor

@keyonghan keyonghan left a comment

Choose a reason for hiding this comment

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

LGTM

import 'package:metrics_center/src/common.dart';

/// Convenient class to capture the benchmarks in the Flutter engine repo.
class FlutterEngineMetricPoint extends MetricPoint {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation. Then it should be fine to use flutter.

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@liyuqian liyuqian merged commit a0ec4d6 into flutter:master Nov 12, 2020
jonahwilliams added a commit that referenced this pull request Nov 12, 2020
jonahwilliams added a commit that referenced this pull request Nov 12, 2020
@liyuqian liyuqian deleted the skia_perf_point branch November 13, 2020 00:12
liyuqian added a commit to liyuqian/flutter that referenced this pull request Nov 13, 2020
liyuqian added a commit that referenced this pull request Nov 14, 2020
)

This reverts commit 2a5aa29.

Additionally, fix a few NNBD issues.

Fixes #70408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team Infra upgrades, team productivity, code health, technical debt. See also team: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants