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
3ce0c27f
Unverified
Commit
3ce0c27f
authored
Feb 21, 2019
by
Dan Field
Committed by
GitHub
Feb 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make logcat less chatty on perf tests (#28272)
parent
b45a8f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
adb.dart
dev/devicelab/lib/framework/adb.dart
+10
-1
No files found.
dev/devicelab/lib/framework/adb.dart
View file @
3ce0c27f
...
...
@@ -296,7 +296,16 @@ class AndroidDevice implements Device {
stream
=
StreamController
<
String
>(
onListen:
()
async
{
await
adb
(<
String
>[
'logcat'
,
'--clear'
]);
final
Process
process
=
await
startProcess
(
adbPath
,
<
String
>[
'-s'
,
deviceId
,
'logcat'
]);
final
Process
process
=
await
startProcess
(
adbPath
,
// Make logcat less chatty by filtering down to just ActivityManager
// (to let us know when app starts), flutter (needed by tests to see
// log output), and fatal messages (hopefully catches tombstones).
// For local testing, this can just be:
// <String>['-s', deviceId, 'logcat']
// to view the whole log, or just run logcat alongside this.
<
String
>[
'-s'
,
deviceId
,
'logcat'
,
'ActivityManager:I'
,
'flutter:V'
,
'*:F'
],
);
process
.
stdout
.
transform
<
String
>(
utf8
.
decoder
)
.
transform
<
String
>(
const
LineSplitter
())
...
...
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