Search code examples
androidlogcat

'logcat -s Antutu Benchmark' didn't work on commandline


I want to filter "Antutu Benchmark" in logcat logs. I have tried

logcat -s Antutu Benchmark
logcat -s Antutu\ Benchmark

But both of them can't work. Is it because of the space in tag? Any suggestions? Thanks!

...
I/Antutu Benchmark( 1442): memory:     868
I/Antutu Benchmark( 1442): integer:     1240
I/Antutu Benchmark( 1442): float:     915
I/Antutu Benchmark( 1442): score2d:     145
I/Antutu Benchmark( 1442): score3d:     1196
I/Antutu Benchmark( 1442): database:     350
I/Antutu Benchmark( 1442): sdwrite:     85
I/Antutu Benchmark( 1442): sdread:     193
I/Antutu Benchmark( 1442): score:     4992
...

Solution

  • You can use the following command to get all logs containing "Antutu Benchmark"

    adb logcat | grep Antutu Benchmark

    I am guessing you are using adb for getting logs.