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
69728097
Commit
69728097
authored
Dec 09, 2019
by
liyuqian
Committed by
Flutter GitHub Bot
Dec 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused observer and raise the waiting time (#46626)
parent
02685104
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
large_images.dart
dev/benchmarks/macrobenchmarks/test_memory/large_images.dart
+0
-11
fast_scroll_large_images__memory.dart
...devicelab/bin/tasks/fast_scroll_large_images__memory.dart
+1
-1
No files found.
dev/benchmarks/macrobenchmarks/test_memory/large_images.dart
View file @
69728097
...
...
@@ -16,20 +16,9 @@ Future<void> endOfAnimation() async {
}
while
(
SchedulerBinding
.
instance
.
hasScheduledFrame
);
}
int
iteration
=
0
;
class
LifecycleObserver
extends
WidgetsBindingObserver
{
@override
void
didChangeAppLifecycleState
(
AppLifecycleState
state
)
{
debugPrint
(
'==== MEMORY BENCHMARK ====
$state
===='
);
debugPrint
(
'This was lifecycle event number
$iteration
in this instance'
);
}
}
Future
<
void
>
main
()
async
{
runApp
(
const
MacrobenchmarksApp
(
initialRoute:
kLargeImagesRouteName
));
await
endOfAnimation
();
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
50
));
debugPrint
(
'==== MEMORY BENCHMARK ==== READY ===='
);
WidgetsBinding
.
instance
.
addObserver
(
LifecycleObserver
());
}
dev/devicelab/bin/tasks/fast_scroll_large_images__memory.dart
View file @
69728097
...
...
@@ -30,7 +30,7 @@ class FastScrollLargeImagesMemoryTest extends MemoryTest {
await
launchApp
();
await
recordStart
();
await
device
.
shellExec
(
'input'
,
<
String
>[
'swipe'
,
'0 1500 0 0 50'
]);
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
1
0
000
));
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
1
5
000
));
await
recordEnd
();
}
}
...
...
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