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
9379c323
Unverified
Commit
9379c323
authored
Nov 18, 2022
by
Jonah Williams
Committed by
GitHub
Nov 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[devicelab] measure entire release folder size, zipped (#115612)" (#115617)
This reverts commit
0b33b859
.
parent
0b33b859
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+7
-17
No files found.
dev/devicelab/lib/tasks/perf_tests.dart
View file @
9379c323
...
...
@@ -1513,29 +1513,19 @@ class CompileTest {
watch
.
start
();
await
flutter
(
'build'
,
options:
options
);
watch
.
stop
();
final
String
buildPath
=
path
.
join
(
final
String
basename
=
path
.
basename
(
cwd
);
final
String
exePath
=
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. Zip them all
// together to get an approximate release size.
final
int
result
=
await
exec
(
'tar.exe'
,
<
String
>[
'-zcf'
,
'build/app.tar.gz'
,
'"
$buildPath
"'
]);
if
(
result
==
0
)
{
final
File
outputFile
=
file
(
'build/app.tar.gz'
);
if
(
outputFile
.
existsSync
())
{
releaseSizeInBytes
=
outputFile
.
lengthSync
();
}
else
{
print
(
'tar completed successfully, but
${outputFile.path}
does not exist!'
);
releaseSizeInBytes
=
0
;
}
}
else
{
print
(
'Failed to run tar.exe:
$result
'
);
releaseSizeInBytes
=
0
;
}
// 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
();
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