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
fb544659
Unverified
Commit
fb544659
authored
Aug 10, 2020
by
Ming Lyu (CareF)
Committed by
GitHub
Aug 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for frametiming (#62933)
parent
cb69bbb4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
binding.dart
packages/flutter/lib/src/scheduler/binding.dart
+1
-0
scheduler_test.dart
packages/flutter/test/scheduler/scheduler_test.dart
+4
-2
No files found.
packages/flutter/lib/src/scheduler/binding.dart
View file @
fb544659
...
@@ -1081,6 +1081,7 @@ mixin SchedulerBinding on BindingBase {
...
@@ -1081,6 +1081,7 @@ mixin SchedulerBinding on BindingBase {
'elapsed'
:
frameTiming
.
totalSpan
.
inMicroseconds
,
'elapsed'
:
frameTiming
.
totalSpan
.
inMicroseconds
,
'build'
:
frameTiming
.
buildDuration
.
inMicroseconds
,
'build'
:
frameTiming
.
buildDuration
.
inMicroseconds
,
'raster'
:
frameTiming
.
rasterDuration
.
inMicroseconds
,
'raster'
:
frameTiming
.
rasterDuration
.
inMicroseconds
,
'vsyncOverhead'
:
frameTiming
.
vsyncOverhead
.
inMicroseconds
,
});
});
}
}
...
...
packages/flutter/test/scheduler/scheduler_test.dart
View file @
fb544659
...
@@ -134,7 +134,8 @@ void main() {
...
@@ -134,7 +134,8 @@ void main() {
});
});
test
(
'Flutter.Frame event fired'
,
()
async
{
test
(
'Flutter.Frame event fired'
,
()
async
{
window
.
onReportTimings
(<
FrameTiming
>[
FrameTiming
.
fromTimeStamps
(
window
.
onReportTimings
(<
FrameTiming
>[
FrameTiming
(
vsyncStart:
5000
,
buildStart:
10000
,
buildStart:
10000
,
buildFinish:
15000
,
buildFinish:
15000
,
rasterStart:
16000
,
rasterStart:
16000
,
...
@@ -147,9 +148,10 @@ void main() {
...
@@ -147,9 +148,10 @@ void main() {
final
Map
<
String
,
dynamic
>
event
=
events
.
first
;
final
Map
<
String
,
dynamic
>
event
=
events
.
first
;
expect
(
event
[
'number'
],
isNonNegative
);
expect
(
event
[
'number'
],
isNonNegative
);
expect
(
event
[
'startTime'
],
10000
);
expect
(
event
[
'startTime'
],
10000
);
expect
(
event
[
'elapsed'
],
1
0
000
);
expect
(
event
[
'elapsed'
],
1
5
000
);
expect
(
event
[
'build'
],
5000
);
expect
(
event
[
'build'
],
5000
);
expect
(
event
[
'raster'
],
4000
);
expect
(
event
[
'raster'
],
4000
);
expect
(
event
[
'vsyncOverhead'
],
5000
);
});
});
test
(
'TimingsCallback exceptions are caught'
,
()
{
test
(
'TimingsCallback exceptions are caught'
,
()
{
...
...
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