Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
98f0c369
Unverified
Commit
98f0c369
authored
Jun 27, 2022
by
Jonah Williams
Committed by
GitHub
Jun 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add old gallery page transition (#106701)
parent
b731aee6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
0 deletions
+82
-0
.ci.yaml
.ci.yaml
+11
-0
TESTOWNERS
TESTOWNERS
+1
-0
old_gallery__transition_perf.dart
dev/devicelab/bin/tasks/old_gallery__transition_perf.dart
+17
-0
page_transitions_perf.dart
...ts/flutter_gallery/test_driver/page_transitions_perf.dart
+14
-0
page_transitions_perf_test.dart
...utter_gallery/test_driver/page_transitions_perf_test.dart
+39
-0
No files found.
.ci.yaml
View file @
98f0c369
...
...
@@ -1957,6 +1957,17 @@ targets:
task_name
:
new_gallery__crane_perf
scheduler
:
luci
-
name
:
Linux_android old_gallery__transition_perf
bringup
:
true
recipe
:
devicelab/devicelab_drone
presubmit
:
false
timeout
:
60
properties
:
tags
:
>
["devicelab", "android", "linux"]
task_name
:
old_gallery__transition_perf
scheduler
:
luci
-
name
:
Linux_android new_gallery__transition_perf
recipe
:
devicelab/devicelab_drone
presubmit
:
false
...
...
TESTOWNERS
View file @
98f0c369
...
...
@@ -64,6 +64,7 @@
/dev/devicelab/bin/tasks/list_text_layout_impeller_perf__e2e_summary.dart @dnfield @flutter/engine
/dev/devicelab/bin/tasks/multi_widget_construction_perf__e2e_summary.dart @zanderso @flutter/engine
/dev/devicelab/bin/tasks/new_gallery__crane_perf.dart @zanderso @flutter/engine
/dev/devicelab/bin/tasks/old_gallery__transition_perf.dart @jonahwilliams @flutter/engine
/dev/devicelab/bin/tasks/picture_cache_perf__e2e_summary.dart @zanderso @flutter/engine
/dev/devicelab/bin/tasks/platform_channels_benchmarks.dart @gaaclarke @flutter/engine
/dev/devicelab/bin/tasks/platform_views_scroll_perf__timeline_summary.dart @zanderso @flutter/engine
...
...
dev/devicelab/bin/tasks/old_gallery__transition_perf.dart
0 → 100644
View file @
98f0c369
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_devicelab/framework/devices.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
import
'package:flutter_devicelab/tasks/perf_tests.dart'
;
void
main
(
)
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
PerfTest
(
'
${flutterDirectory.path}
/dev/integration_tests/flutter_gallery'
,
'test_driver/page_transitions_perf.dart'
,
'page_transition_perf'
,
).
run
);
}
dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf.dart
0 → 100644
View file @
98f0c369
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter/material.dart'
;
import
'package:flutter_driver/driver_extension.dart'
;
import
'package:flutter_gallery/gallery/app.dart'
show
GalleryApp
;
void
main
(
)
{
enableFlutterDriverExtension
();
// As in lib/main.dart: overriding https://github.com/flutter/flutter/issues/13736
// for better visual effect at the cost of performance.
runApp
(
const
GalleryApp
(
testMode:
true
));
}
dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart
0 → 100644
View file @
98f0c369
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_driver/flutter_driver.dart'
;
import
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
void
main
(
)
{
group
(
'page transition performance test'
,
()
{
late
FlutterDriver
driver
;
setUpAll
(()
async
{
driver
=
await
FlutterDriver
.
connect
();
await
driver
.
waitUntilFirstFrameRasterized
();
});
tearDownAll
(()
async
{
driver
.
close
();
});
test
(
'measure'
,
()
async
{
final
Timeline
timeline
=
await
driver
.
traceAction
(()
async
{
await
driver
.
tap
(
find
.
text
(
'Material'
));
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
await
driver
.
tap
(
find
.
text
(
'Banner'
));
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
500
));
await
driver
.
waitFor
(
find
.
byTooltip
(
'Back'
));
await
driver
.
tap
(
find
.
byTooltip
(
'Back'
));
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
500
));
}
});
final
TimelineSummary
summary
=
TimelineSummary
.
summarize
(
timeline
);
await
summary
.
writeTimelineToFile
(
'page_transition_perf'
,
pretty:
true
);
},
timeout:
Timeout
.
none
);
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment