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
50828a13
Unverified
Commit
50828a13
authored
Jul 29, 2020
by
Ming Lyu (CareF)
Committed by
GitHub
Jul 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix (#62349)
parent
f4e10b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
util.dart
dev/benchmarks/macrobenchmarks/test/util.dart
+4
-3
No files found.
dev/benchmarks/macrobenchmarks/test/util.dart
View file @
50828a13
...
...
@@ -41,8 +41,7 @@ void macroPerfTestE2E(
binding
.
framePolicy
=
LiveTestWidgetsFlutterBindingFramePolicy
.
benchmarkLive
;
testWidgets
(
testName
,
(
WidgetTester
tester
)
async
{
assert
((
tester
.
binding
as
LiveTestWidgetsFlutterBinding
).
framePolicy
==
LiveTestWidgetsFlutterBindingFramePolicy
.
fullyLive
);
assert
(
tester
.
binding
==
binding
);
app
.
main
();
await
tester
.
pumpAndSettle
();
...
...
@@ -61,6 +60,8 @@ void macroPerfTestE2E(
expect
(
button
,
findsOneWidget
);
await
tester
.
pumpAndSettle
();
await
tester
.
tap
(
button
);
// Cannot be pumpAndSettle because some tests have inifite animation.
await
tester
.
pump
(
const
Duration
(
milliseconds:
20
));
if
(
pageDelay
!=
null
)
{
// Wait for the page to load
...
...
@@ -108,7 +109,7 @@ class FrameTimingSummarizer {
final
List
<
Duration
>
frameRasterizerTime
=
List
<
Duration
>.
unmodifiable
(
data
.
map
<
Duration
>((
FrameTiming
datum
)
=>
datum
.
rasterDuration
),
);
final
List
<
Duration
>
frameRasterizerTimeSorted
=
List
<
Duration
>.
from
(
frame
Build
Time
)..
sort
();
final
List
<
Duration
>
frameRasterizerTimeSorted
=
List
<
Duration
>.
from
(
frame
Rasterizer
Time
)..
sort
();
final
Duration
Function
(
Duration
,
Duration
)
add
=
(
Duration
a
,
Duration
b
)
=>
a
+
b
;
return
FrameTimingSummarizer
.
_
(
frameBuildTime:
frameBuildTime
,
...
...
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