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
75a0a725
Unverified
Commit
75a0a725
authored
Nov 18, 2022
by
Jonah Williams
Committed by
GitHub
Nov 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[devicelab] measure entire release folder size, zipped (#115597)
parent
78390a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+6
-7
No files found.
dev/devicelab/lib/tasks/perf_tests.dart
View file @
75a0a725
...
...
@@ -1513,19 +1513,18 @@ class CompileTest {
watch
.
start
();
await
flutter
(
'build'
,
options:
options
);
watch
.
stop
();
final
String
basename
=
path
.
basename
(
cwd
);
final
String
exePath
=
path
.
join
(
final
String
buildPath
=
path
.
join
(
cwd
,
'build'
,
'windows'
,
'runner'
,
'release'
,
'
$basename
.exe'
);
final
File
exe
=
file
(
exePath
);
);
// On Windows, we do not produce a single installation package file,
// rather a directory containing an .exe and .dll files.
// The release size is set to the size of the produced .exe file
releaseSizeInBytes
=
exe
.
lengthSync
();
// rather a directory containing an .exe and .dll files. Zip them all
// together to get an approximate release size.
await
exec
(
'tar.exe'
,
<
String
>[
'-zcf'
,
'build/app.tar.gz'
,
buildPath
]);
releaseSizeInBytes
=
file
(
'build/app.tar.gz'
).
lengthSync
();
break
;
}
...
...
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