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
e9e8ca76
Unverified
Commit
e9e8ca76
authored
Mar 05, 2021
by
Jenn Magder
Committed by
GitHub
Mar 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug_second_compile_millis benchmark metric (#77420)
parent
c9d68ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+22
-5
No files found.
dev/devicelab/lib/tasks/perf_tests.dart
View file @
e9e8ca76
...
...
@@ -1000,9 +1000,21 @@ class CompileTest {
await
device
.
unlock
();
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
final
Map
<
String
,
dynamic
>
compileRelease
=
await
_compileApp
(
reportPackageContentSizes:
reportPackageContentSizes
);
final
Map
<
String
,
dynamic
>
compileDebug
=
await
_compileDebug
(
clean:
true
,
metricKey:
'debug_full_compile_millis'
,
);
// Build again without cleaning, should be faster.
final
Map
<
String
,
dynamic
>
compileSecondDebug
=
await
_compileDebug
(
clean:
false
,
metricKey:
'debug_second_compile_millis'
,
);
final
Map
<
String
,
dynamic
>
metrics
=
<
String
,
dynamic
>{
...
await
_compileApp
(
reportPackageContentSizes:
reportPackageContentSizes
),
...
await
_compileDebug
(),
...
compileRelease
,
...
compileDebug
,
...
compileSecondDebug
,
};
return
TaskResult
.
success
(
metrics
,
benchmarkScoreKeys:
metrics
.
keys
.
toList
());
...
...
@@ -1082,8 +1094,13 @@ class CompileTest {
return
metrics
;
}
static
Future
<
Map
<
String
,
dynamic
>>
_compileDebug
()
async
{
await
flutter
(
'clean'
);
static
Future
<
Map
<
String
,
dynamic
>>
_compileDebug
({
@required
bool
clean
,
@required
String
metricKey
,
})
async
{
if
(
clean
)
{
await
flutter
(
'clean'
);
}
final
Stopwatch
watch
=
Stopwatch
();
final
List
<
String
>
options
=
<
String
>[
'--debug'
];
switch
(
deviceOperatingSystem
)
{
...
...
@@ -1109,7 +1126,7 @@ class CompileTest {
watch
.
stop
();
return
<
String
,
dynamic
>{
'debug_full_compile_millis'
:
watch
.
elapsedMilliseconds
,
metricKey
:
watch
.
elapsedMilliseconds
,
};
}
...
...
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