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
a9993664
Commit
a9993664
authored
May 05, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the analyze --benhcmark-expected option (#3755)
parent
2592f8f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+2
-16
device.dart
packages/flutter_tools/lib/src/device.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
a9993664
...
...
@@ -118,15 +118,8 @@ class AnalyzeCommand extends FlutterCommand {
argParser
.
addFlag
(
'watch'
,
help:
'Run analysis continuously, watching the filesystem for changes.'
,
negatable:
false
);
argParser
.
addOption
(
'dart-sdk'
,
help:
'The path to the Dart SDK.'
,
hide:
true
);
// Options to enable a benchmarking mode.
argParser
.
addFlag
(
'benchmark'
,
negatable:
false
,
hide:
true
);
argParser
.
addOption
(
'benchmark-expected'
,
hide:
true
,
help:
'The time (in seconds) that the benchmark is expected to run.'
);
// Hidden option to enable a benchmarking mode.
argParser
.
addFlag
(
'benchmark'
,
negatable:
false
,
hide:
true
);
usesPubOption
();
}
...
...
@@ -577,19 +570,12 @@ class AnalyzeCommand extends FlutterCommand {
void
_writeBenchmark
(
Stopwatch
stopwatch
,
int
errorCount
)
{
final
String
benchmarkOut
=
'analysis_benchmark.json'
;
String
expectedTime
=
argResults
[
'benchmark-expected'
];
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>{
'time'
:
(
stopwatch
.
elapsedMilliseconds
/
1000.0
),
'issues'
:
errorCount
};
if
(
expectedTime
!=
null
)
data
[
'expected'
]
=
expectedTime
;
JsonEncoder
encoder
=
new
JsonEncoder
.
withIndent
(
' '
);
new
File
(
benchmarkOut
).
writeAsStringSync
(
encoder
.
convert
(
data
)
+
'
\n
'
);
printStatus
(
'Analysis benchmark written to
$benchmarkOut
.'
);
}
}
...
...
packages/flutter_tools/lib/src/device.dart
View file @
a9993664
...
...
@@ -57,7 +57,7 @@ class DeviceManager {
devices
=
devices
.
where
((
Device
device
)
{
return
(
device
.
id
.
toLowerCase
().
startsWith
(
deviceId
)
||
device
.
name
.
toLowerCase
().
startsWith
(
deviceId
));
});
})
.
toList
()
;
return
devices
.
length
==
1
?
devices
.
first
:
null
;
}
...
...
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