Coder Social home page Coder Social logo

googlecodelabs / android-perf-testing Goto Github PK

View Code? Open in Web Editor NEW
93.0 18.0 39.0 462 KB

Automated Performance Testing on Android

Home Page: https://codelabs.developers.google.com/codelabs/android-perf-testing/

License: Apache License 2.0

Java 67.77% Groovy 16.85% Python 15.39%

android-perf-testing's Introduction

android-perf-testing's People

Contributors

ceruleanotter avatar paulrashidi avatar pungrue26 avatar ryanseys avatar samirma avatar tjohns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-perf-testing's Issues

Step 7. perform_systrace fails

On my windows 7 installation the script fails at executing line 79 of the run_perf_tests.py . The reason is: os_error global is not defined. I tried to modify that on my own, by changing from
except OSError: print 'ERROR executing systrace ' + os_error
to
except OSError as err: print 'ERROR executing systrace ' + err.strerror
but monkeyrunner rejects that - it doesn't allow the "as" functionality for handling exceptions.

I know that this line's purpose is just to tell me what went wrong when trying to run the systrace command, but I'll never learn that if I don't get this line of script fixed.

Item 7 - Automating Systrace with MonkeyRunner fails

FYI:Running the test on Windows 10

Your command: gradlew :app:assembleDebug :app:assembleDebugAndroidTest ...
I think list an incorrect task, :app:assembleDebugAndroidTest.

Should be: gradlew :app:assembleDebug :app:assembleAndroidTest ....

ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

CRITICAL:root:(TimeoutThread-1-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 1 of 3: ValueError('close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr',)
CRITICAL:root:(TimeoutThread-2-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 2 of 3: ValueError('close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr',)
Traceback (most recent call last):
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\systrace.py", line 49, in
sys.exit(run_systrace.main())
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 194, in main
main_impl(sys.argv)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 155, in main_impl
devices = [a.GetDeviceSerial() for a in adb_wrapper.AdbWrapper.Devices()]
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 363, in Devices
retries=retries)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 383, in _RawDevices
output = cls._RunAdbCmd(cmd, timeout=timeout, retries=retries)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\decorators.py", line 57, in timeout_retry_wrapper
retry_if_func=retry_if_func)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\timeout_retry.py", line 159, in Run
error_log_func=error_log_func)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\reraiser_thread.py", line 186, in JoinAll
self._JoinAll(watcher, timeout)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\reraiser_thread.py", line 158, in _JoinAll
thread.ReraiseIfException()
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\reraiser_thread.py", line 81, in run
self._ret = self._func(*self._args, **self._kwargs)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\timeout_retry.py", line 152, in
child_thread = reraiser_thread.ReraiserThread(lambda: func(*args, **kwargs),
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\decorators.py", line 47, in impl
return f(*args, **kwargs)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 249, in _RunAdbCmd
timeout_retry.CurrentTimeoutThreadGroup().GetRemainingTime())
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\cmd_helper.py", line 313, in GetCmdStatusAndOutputWithTimeout
stderr=subprocess.STDOUT)
File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\cmd_helper.py", line 105, in Popen
shell=shell, close_fds=True, env=env, preexec_fn=preexec_fn)
File "C:\Python27\lib\subprocess.py", line 347, in init
raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

Step 7: Project 'C' not found in root project 'android-perf-testing'.

When executing Step 7 on Windows 10 I get the error above.

I am running this command from the project's directory:

gradlew :app:assembleDebug :app:assembleD
ebugAndroidTest :app:installDebug :app:installDebugAndroidTest %ANDROID_HOME%\tools\monkeyrunner run_perf_tests.py .\ calf2857

I also tried to fully qualify the script and the project, but the error stays the same.

Any clues?

PerfTaskGeneratorPlugin expects 6 parts to output, only receiving 5 (Windows)

Error:(50, 0) There should always be 6 parts to the output, double check something isn't wrong: ZH80071CYG             device product:D2303 model:D2303 device:D2303 parsed to [ZH80071CYG, device, product:D2303, model:D2303, device:D2303]

Tested on Windows 10, 23.1 platform-tools, 24.4.1 Android tools, and Sony Xperia M2 and Nexus 6 phones.

Monkeyrunner.bat path on Step 6 is wrong (Windows)

gradlew :app:assembleDebug :app:assembleDebugAndroidTest :app:installDebug :app:installDebugAndroidTest

%ANDROID_HOME%\tools\bin\monkeyrunner.bat run_perf_tests.py .\ <INSERT_ID>

Even after resolving the ANDROID_SWT variable issue with monkeyrunner with the below command it seems like monkeyrunner.bat is broken for Windows.

set ANDROID_SWT=C:\Users\someone\AppData\Local\Android\sdk\tools\lib\x86_64\swt.jar

systrace.py command throws error

Hello,
your codelab states to do the following command:
python $ANDROID_HOME/platform-tools/systrace/systrace.py --time=10 -o ~/trace.html gfx view res

However, it causes this error:

Traceback (most recent call last):
File "/Users/igorganapolsky/Library/Android/sdk/platform-tools/systrace/systrace.py", line 48, in
from systrace import run_systrace
File "/Users/igorganapolsky/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/run_systrace.py", line 43, in
from systrace import systrace_runner
File "/Users/igorganapolsky/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/systrace_runner.py", line 15, in
from systrace.tracing_agents import battor_trace_agent
File "/Users/igorganapolsky/Library/Android/sdk/platform-tools/systrace/catapult/systrace/systrace/tracing_agents/battor_trace_agent.py", line 11, in
from battor import battor_wrapper
File "/Users/igorganapolsky/Library/Android/sdk/platform-tools/systrace/catapult/common/battor/battor/battor_wrapper.py", line 22, in
import serial
ImportError: No module named serial

When running runLocalPerfTests nothing happens

Should i be seeing the espresso tests at this point? because I don't see this. all i see is the list of tests completing and the reports aren't even generated.

However running the tests with the commands work.

alt tag

Step 5. Using Systrace - blank page in browser

When trying step 5 - I see a blank page in the browser for traces. I am running windows 7 - note that this has also been observed in Ubuntu. The root cause appears to be the removal of the "Object.observe" function in Chrome 50+. A pretty simple workaround is shown below.

http://stackoverflow.com/questions/36865899/react-native-android-systrace-html-is-blank-in-ubuntu-14-04/37008945

The workaround noted in one of the stack overflow responses is to add the following to the start of the trace.html file in the head section:

<script src="https://rawgit.com/MaxArt2501/object-observe/master/dist/object-observe.min.js"></script>

This works for me.

The example errors in the blank page in Chrome Version 51.0.2704.79 m are shown below:

image

Step 7: App is installed and started but no tests are executed

This is what the log shows:

Installing APK 'app-debug-androidTest.apk' on 'SM-T819 - 7.0' for app:debugAndroidTest
Installed on 1 device.
:app:runLocalPerfTests_ca1f2857
Starting monkeyrunner
Script: Writing logs to: C:\Daten\Entwicklung\AutomatedPerformanceTesting\android-perf-testing
Script: Using device_id: ca1f2857
Script: Your ANDROID_HOME is set to: C:\Users\jwahlmann\android-sdks
Script: Cleaning data files
Script: Waiting for a device to be connected.
Script: Device connected.
Script: Starting dump permission grant
Script: Starting storage permission grant
Script: Clearing gfxinfo on device
Script: Starting test
Script: Executing systrace
Script: 
Script: 
Script: Time: 0
Script: 
Script: OK (0 tests)
Script: Done running tests
Script: Done systrace logging
Script: Systrace Thread Done
Script: Test Thread Done
Script: Time between test and trace thread completion: 0
Script: Starting adb pull for test files
Script: Starting adb pull for test files
Script: 
Script: FAIL: Could not find file indicating the test run completed. Check that the TestListener is writing files to external storage
Script: 
Script: OVERALL: FAILED. See above for more information.
Monkeyrunner complete
:app:runLocalPerfTests

BUILD SUCCESSFUL in 25s
49 actionable tasks: 6 executed, 43 up-to-date

The App startes but immediately shuts down again before any tests are started. Yet I fail to see a reason in Android Log:

07-06 11:15:19.978 10236-10236/? I/Finsky: [1] com.google.android.finsky.utils.PermissionPolicies$PermissionPolicyService.onStartCommand(18): post-install permissions check for com.google.android.perftesting.test
07-06 11:15:19.983 10236-10236/? I/Finsky: [1] com.google.android.finsky.externalreferrer.d.run(9): Package state data is missing for com.google.android.perftesting.test
07-06 11:15:19.984 5530-6256/? D/WearableService: onGetService - Wear is not available on this device.
07-06 11:15:19.988 10236-10236/? E/Finsky: [1] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
07-06 11:15:19.989 10236-10236/? W/Finsky: [1] com.google.android.finsky.wear.aj.run(9): Dropping command=auto_install due to Gms not connected
07-06 11:15:20.028 6071-18232/? D/Wear_Controller: Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.google.android.perftesting.test
07-06 11:15:20.074 3194-8188/? D/PackageManager: resolving Home intent, isUnlockingOrUnlocked : true
07-06 11:15:20.083 29011-29011/? I/SystemBroadcastReceiver: onReceive. Timestamp - 06-07-2017 11:15:20.083
07-06 11:15:20.083 29011-29011/? I/SystemBroadcastReceiver: Intent received - android.intent.action.PACKAGE_ADDED
07-06 11:15:20.083 29011-29011/? I/SystemBroadcastReceiver: NotificationFeature is disabled. Returning from onReceive
07-06 11:15:20.100 3194-8189/? D/PackageManager: resolving Home intent, isUnlockingOrUnlocked : true
07-06 11:15:20.106 6071-8622/? I/Icing: Usage reports 0 indexed 0 rejected 0 imm upload false
07-06 11:15:20.111 29066-29066/? I/SystemBroadcastReceiver: onReceive. Timestamp - 06-07-2017 11:15:20.110
07-06 11:15:20.111 29066-29066/? I/SystemBroadcastReceiver: Intent received - android.intent.action.PACKAGE_ADDED
07-06 11:15:20.111 29066-29066/? I/SystemBroadcastReceiver: NotificationFeature is disabled. Returning from onReceive
07-06 11:15:20.125 29104-29104/? I/SystemBroadcastReceiver: onReceive. Timestamp - 06-07-2017 11:15:20.124
07-06 11:15:20.125 29104-29104/? I/SystemBroadcastReceiver: Intent received - android.intent.action.PACKAGE_ADDED
07-06 11:15:20.125 29104-29104/? I/SystemBroadcastReceiver: NotificationFeature is disabled. Returning from onReceive
07-06 11:15:20.138 1860-1860/? I/NetworkConnectReceiver: onReceive
07-06 11:15:20.139 1860-1860/? D/NetworkManagerUtils: getSubId subId:1
07-06 11:15:20.140 1860-1860/? D/NetworkManagerUtils: subscriberId=262021704356858
07-06 11:15:20.151 29138-29138/? I/[SC]SCloudReceiver: onReceive: android.intent.action.PACKAGE_ADDED
07-06 11:15:20.209 11976-18662/? I/AirWatch: BroadcastIntentService:  : onHandleIntent start broadcast_receiver_delegate_action
07-06 11:15:20.210 11976-18662/? I/AirWatch: BroadcastIntentService:  : onHandleIntent start android.intent.action.PACKAGE_ADDED
07-06 11:15:20.235 29265-18665/? D/AirWatchSDK: messageType: null
07-06 11:15:20.258 11976-18662/? I/AirWatch: Picking from Q :LOWEST
07-06 11:15:20.266 29293-29293/? D/skia: Encode PNG Singlethread :       5530 us, width=96, height=96
07-06 11:15:20.308 28818-18306/? E/MShopAppstore.NotificationService: Unhandled notification type: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.perftesting.test flg=0x4000010 cmp=de.amazon.mShop.android/com.amazon.venezia.notification.NotificationService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } bqHint=1 (has extras) }
07-06 11:15:20.335 28818-18223/? W/MShopAppstore.AppManagerAndroidPackageDelegate: Unable to determine asin for package, skipping metadata update.
07-06 11:15:20.400 5530-9085/? E/NetworkScheduler.SR: Invalid parameter app
07-06 11:15:20.400 5530-9085/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
07-06 11:15:20.406 6071-18239/? I/FontsPackageChangeOp: Package com.google.android.perftesting.test has no metadata
07-06 11:15:20.419 31500-31500/? D/AssistantMenuReceiver: [c] AssistantMenuReceiver:android.intent.action.PACKAGE_REPLACED
07-06 11:15:20.420 31500-31500/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1403 android.content.ContextWrapper.startService:673 android.content.ContextWrapper.startService:673 com.samsung.android.app.assistantmenu.AssistantMenuReceiver.onReceive:144 android.app.ActivityThread.handleReceiver:3359 
07-06 11:15:20.430 3194-5718/? D/PackageManager: setEnabledSetting : userId = 0 packageName = com.google.android.gms cmp = com.google.android.gms.people.pub.PeopleProfileActionGatewayActivity newState = 1 callingPackage = 10011
07-06 11:15:20.433 3194-17853/? D/SamsungAlarmManager: Cancel Alarm calling from uid:10011 pid :5530 / op:PendingIntent{6f85842: PendingIntentRecord{5ff7049 com.google.android.gms broadcastIntent}}
07-06 11:15:20.434 3194-17853/? I/SamsungAlarmManager: setLocked to kernel - T:2 / 20170706T111534, SetElapsed=596840001, nowELAPSED=596825478
07-06 11:15:20.440 31523-31523/? D/oneconnect: Util.getSCRunningSetting - [value]1
07-06 11:15:20.440 31523-31523/? D/oneconnect: QcReceiver.onReceive - isQcRunning: true, SCRunningSetting: 1, updateLevel: -1
07-06 11:15:20.461 3194-19791/? D/PackageManager: resolving Home intent, isUnlockingOrUnlocked : true
07-06 11:15:20.464 31611-31611/? D/RCP_PackageUpdateReceiver: Update Package Name :com.google.android.perftesting.test
07-06 11:15:20.465 31611-31611/? D/RCP_PackageUpdateReceiver: Update Class Name :null
07-06 11:15:20.465 6071-27539/? I/Icing: Usage reports 0 indexed 0 rejected 0 imm upload false
07-06 11:15:20.485 3194-20860/? D/SamsungAlarmManager: setInexact Intent (T:2/F:0/AC:false) 20170706T115033 - CU:10011/CP:5530
07-06 11:15:20.491 3194-4607/? D/PackageManager: resolving Home intent, isUnlockingOrUnlocked : true
07-06 11:15:20.494 6071-27539/? I/Icing: Usage reports 0 indexed 0 rejected 0 imm upload false
07-06 11:15:20.497 29208-29208/? E/WebContentsProviderReceiver: onReceive - not approved application
07-06 11:15:20.503 28504-28504/? D/[WeatherWidget(1419)]  ClearDataReceiver: {[2B4A2AC40B5A9FD87A06E8EADDAC9014C75255DEA2E6ED3130E1CB32FFE49C5CD836E5F829F7178AD2B357A9691CCE1C19D510B627B4AAAE726D602F9DB5B7CC3032A73C4016C4F3CB39C16F924AD666474AEF536969CAE315C478F9C27271A66B62E0E2CE64869C660C39508EA8A9F42FFD5745D057B5FFD0C88BBA5BE13E83]}
07-06 11:15:20.525 11976-18691/? I/AirWatch: BroadcastIntentService:  : onHandleIntent start broadcast_receiver_delegate_action
07-06 11:15:20.525 11976-18691/? I/AirWatch: BroadcastIntentService:  : onHandleIntent start android.intent.action.PACKAGE_REPLACED
07-06 11:15:20.534 29265-29265/? D/Receiver: Receiver.onReceive: start; Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.google.android.perftesting.test flg=0x4000010 cmp=com.airwatch.browser/.Receiver launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } bqHint=1 (has extras) }; tid=1
07-06 11:15:20.534 29265-29265/? D/Receiver: Action Received: android.intent.action.PACKAGE_REPLACED
07-06 11:15:20.534 29265-29265/? E/Receiver: Package is replaced package:com.google.android.perftesting.test
07-06 11:15:21.110 6071-24724/? I/Icing: Indexing 1915BDE122451394F629DEF27C0FE3002ABC80A9 from com.google.android.gms
07-06 11:15:21.113 6071-24724/? I/Icing: Indexing done 1915BDE122451394F629DEF27C0FE3002ABC80A9
07-06 11:15:21.391 3194-8187/? I/RemotePrintSpooler: [user: 0] unbindLocked()
07-06 11:15:21.497 6071-24724/? I/Icing: Indexing 1915BDE122451394F629DEF27C0FE3002ABC80A9 from com.google.android.gms
07-06 11:15:21.500 6071-24724/? I/Icing: Indexing done 1915BDE122451394F629DEF27C0FE3002ABC80A9
07-06 11:15:21.557 10007-10028/? W/System.err: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu6/cpufreq/scaling_cur_freq (No such file or directory)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileInputStream.open(Native Method)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:146)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:99)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileReader.<init>(FileReader.java:58)
07-06 11:15:21.558 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:21.558 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.b(Unknown Source)
07-06 11:15:21.558 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.j(Unknown Source)
07-06 11:15:21.558 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:21.558 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.BaseManager$a.handleMessage(Unknown Source)
07-06 11:15:21.558 10007-10028/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
07-06 11:15:21.558 10007-10028/? W/System.err:     at android.os.Looper.loop(Looper.java:154)
07-06 11:15:21.558 10007-10028/? W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)
07-06 11:15:21.558 10007-10028/? W/System.err: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu7/cpufreq/scaling_cur_freq (No such file or directory)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileInputStream.open(Native Method)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:146)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:99)
07-06 11:15:21.558 10007-10028/? W/System.err:     at java.io.FileReader.<init>(FileReader.java:58)
07-06 11:15:21.559 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:21.559 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.b(Unknown Source)
07-06 11:15:21.559 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.j(Unknown Source)
07-06 11:15:21.559 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:21.559 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.BaseManager$a.handleMessage(Unknown Source)
07-06 11:15:21.559 10007-10028/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
07-06 11:15:21.559 10007-10028/? W/System.err:     at android.os.Looper.loop(Looper.java:154)
07-06 11:15:21.559 10007-10028/? W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)
07-06 11:15:21.898 3194-4492/? D/WifiStateMachine: Current network is: "konferenz" , ID is: 0
07-06 11:15:23.432 5799-5915/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 0Kb duration : 1ms lastUpdatedAfter : 4004 ms mFlush_time_threasold : 2000 mCurrentSize : 222
07-06 11:15:24.068 2748-2748/? I/MSM-irqbalance: Decided to move IRQ200 from CPU0 to CPU1
07-06 11:15:24.179 18917-18917/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:24.183 18917-18917/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:24.183 18917-18917/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10137 <<<<<<
07-06 11:15:24.186 18917-18917/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:24.187 18917-18917/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:24.244 18917-18917/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:24.244 18917-18917/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:24.282 3194-20857/? D/BatteryService: !@BatteryListener : batteryPropertiesChanged!
07-06 11:15:24.283 3194-20857/? D/BatteryService: level:100, scale:100, status:5, health:2, present:true, voltage: 4273, temperature: 299, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303698, invalid charger:0, maxChargingCurrent:0, maxChargingVoltage:0, chargeCounter:0
07-06 11:15:24.283 3194-20857/? D/BatteryService: online:6, current avg:-425, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, misc_event:0, current_now:-871
07-06 11:15:24.283 3194-3194/? D/BatteryService: Sending ACTION_BATTERY_CHANGED.
07-06 11:15:24.286 4735-4735/? D/KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
07-06 11:15:24.287 4735-4735/? D/KeyguardUpdateMonitor: handleBatteryUpdate
07-06 11:15:24.289 3194-3194/? D/SamsungPhoneWindowManager: ACTION_BATTERY_CHANGED - Level :: 100, battStatus :: 5
07-06 11:15:24.289 3194-3194/? D/UiModeManager: updateConfigurationLocked: mDockState=0; mCarMode=false; mNightMode=1; uiMode=17
07-06 11:15:24.289 3194-3194/? D/GameManagerService: new battery level: 100
07-06 11:15:24.292 4735-4735/? D/PowerUI: showing power sharing dialogfalse
07-06 11:15:24.292 4735-4735/? D/PowerUI: priorPlugType = 2 mPlugType =  2
07-06 11:15:24.294 4735-4735/? D/BatteryMeterDrawable: isSomethingChanged - false
07-06 11:15:24.294 4735-4735/? D/BatteryMeterDrawable: isSomethingChanged - false
07-06 11:15:24.296 4735-4735/? D/BatteryController: onReceive - ACTION_BATTERY_CHANGED : mLevel = 100
07-06 11:15:24.297 4735-4735/? D/Tile.FlashlightTile: ACTION_BATTERY_CHANGED - Level :: 100, emEnabled :: false
07-06 11:15:24.298 4735-4735/? D/Tile.FlashlightTile: ACTION_BATTERY_CHANGED - Level :: 100, emEnabled :: false
07-06 11:15:24.310 18918-18918/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:24.315 18918-18918/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:24.315 18918-18918/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
07-06 11:15:24.318 18918-18918/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:24.319 18918-18918/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:24.323 18917-18917/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:24.346 18917-18917/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:24.350 18917-18917/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:24.351 18917-18917/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:24.352 18917-18917/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:24.366 18917-18917/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
07-06 11:15:24.375 18918-18918/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:24.375 18918-18918/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:24.450 18918-18918/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:24.475 18918-18918/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:24.479 18918-18918/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:24.479 18918-18918/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:24.481 18918-18918/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:24.490 18917-18917/? I/art: System.exit called, status: 0
07-06 11:15:24.490 18917-18917/? I/AndroidRuntime: VM exiting with result code 0.
07-06 11:15:24.490 18917-18926/? W/MessageQueue: Handler (android.os.Handler) {3f293cc} sending message to a Handler on a dead thread
                                                 java.lang.IllegalStateException: Handler (android.os.Handler) {3f293cc} sending message to a Handler on a dead thread
                                                     at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
                                                     at android.os.Handler.enqueueMessage(Handler.java:643)
                                                     at android.os.Handler.sendMessageAtTime(Handler.java:612)
                                                     at android.os.Handler.sendMessageDelayed(Handler.java:582)
                                                     at android.os.Handler.post(Handler.java:338)
                                                     at android.os.ResultReceiver$MyResultReceiver.send(ResultReceiver.java:57)
                                                     at com.android.internal.os.IResultReceiver$Stub.onTransact(IResultReceiver.java:58)
                                                     at android.os.Binder.execTransact(Binder.java:573)
07-06 11:15:24.492 18918-18918/? D/AndroidRuntime: Calling main entry com.android.commands.monkey.Monkey
07-06 11:15:24.532 3194-3542/? W/BroadcastQueue: Skipping deliver [background] BroadcastRecord{e6362bc u-1 android.net.conn.CONNECTIVITY_CHANGE to ReceiverList{1ce8245 18918 (unknown name)/2000/u-1 remote:e37b68e}: process crashing
07-06 11:15:24.553 2658-4093/? D/EnterpriseController: netId is 0
07-06 11:15:24.553 2658-4093/? D/Netd: getNetworkForDns: using netid 522 for uid 2000
07-06 11:15:24.553 2658-4093/? D/DnsProxyListener: DNSDBG::dns addrinfo af 2
07-06 11:15:24.908 3194-4492/? D/WifiStateMachine: Current network is: "konferenz" , ID is: 0
07-06 11:15:25.040 3194-4420/? D/SensorService: [SO] 0.135 0.000 9.861
07-06 11:15:25.891 3194-5707/? I/AccessibilityManagerService: semIsAccessibilityServiceEnabled()
07-06 11:15:25.891 3194-5707/? I/AccessibilityManagerService: accesibilityService is null
07-06 11:15:25.895 3194-3194/? I/AccessibilityManagerService: semIsAccessibilityServiceEnabled()
07-06 11:15:25.895 3194-3194/? I/AccessibilityManagerService: accesibilityService is null
07-06 11:15:25.898 3194-3194/? D/AccessibilityManagerService: checkUniversalSwitchState start:
07-06 11:15:25.898 3194-3194/? D/AccessibilityManagerService: checkUniversalSwitchState universalSwitchEnabled:false
07-06 11:15:25.898 3194-3194/? D/AccessibilityManagerService: updateInputFilter universalSwitchState:false
07-06 11:15:25.898 3194-3194/? D/AccessibilityManagerService: updateInputFilter userState.mIsUniversalSwitchEnabled:false
07-06 11:15:25.898 3194-3545/? D/SamsungPhoneWindowManager: updateSettings(). settings changed. doubleTapLaunchBehavior : 0. mDoubleTapLaunchBehavior : 0. mDoubleTapLaunchUser 0
07-06 11:15:25.899 3194-3194/? D/AccessibilityManagerService: checkUniversalSwitchState start:
07-06 11:15:25.899 3194-3194/? D/AccessibilityManagerService: checkUniversalSwitchState universalSwitchEnabled:false
07-06 11:15:25.899 3194-3194/? D/AccessibilityManagerService: updateInputFilter universalSwitchState:false
07-06 11:15:25.899 3194-3194/? D/AccessibilityManagerService: updateInputFilter userState.mIsUniversalSwitchEnabled:false
07-06 11:15:25.902 3194-4598/? D/PowerManagerService: [api] [s] wakeUp (uid: 2000 pid: 18918) eventTime = 77372451
07-06 11:15:25.903 3194-17849/? I/AccessibilityManagerService: semIsAccessibilityServiceEnabled()
07-06 11:15:25.903 3194-17849/? I/AccessibilityManagerService: accesibilityService is null
07-06 11:15:25.905 3194-3451/? I/AccessibilityManagerService: semIsAccessibilityServiceEnabled()
07-06 11:15:25.904 18918-18918/? D/MonkeyStub: translateCommand: wake
07-06 11:15:25.905 3194-3451/? I/AccessibilityManagerService: accesibilityService is null
07-06 11:15:25.909 4735-4735/? D/vol.SecVolumeDialog: onAccessibilityStateChanged: misTalkbackEnabled : false
07-06 11:15:25.910 3194-8460/? D/PowerManagerService: [api] [s] wakeUp (uid: 2000 pid: 18918) eventTime = 77372458
07-06 11:15:26.559 19030-19030/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:26.563 19030-19030/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:26.563 19030-19030/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
07-06 11:15:26.566 19030-19030/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:26.567 19030-19030/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:26.621 19030-19030/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:26.621 19030-19030/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:26.697 19030-19030/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:26.720 19030-19030/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:26.724 19030-19030/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:26.724 19030-19030/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:26.726 19030-19030/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:26.736 19030-19030/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
07-06 11:15:26.740 19030-19030/? I/art: System.exit called, status: 0
07-06 11:15:26.740 19030-19030/? I/AndroidRuntime: VM exiting with result code 0.
07-06 11:15:26.815 3194-5261/? E/Watchdog: !@Sync 2576 [06_Juli_11_15_26.815]
07-06 11:15:27.389 19106-19106/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:27.394 19106-19106/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:27.394 19106-19106/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
07-06 11:15:27.396 19106-19106/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:27.397 19106-19106/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:27.449 19106-19106/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:27.449 19106-19106/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:27.525 19106-19106/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:27.549 19106-19106/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:27.554 19106-19106/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:27.554 19106-19106/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:27.556 19106-19106/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:27.565 19106-19106/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
07-06 11:15:27.570 19106-19106/? I/art: System.exit called, status: 0
07-06 11:15:27.570 19106-19106/? I/AndroidRuntime: VM exiting with result code 0.
07-06 11:15:27.916 3194-4492/? D/WifiStateMachine: Current network is: "konferenz" , ID is: 0
07-06 11:15:27.991 19173-19173/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:27.996 19173-19173/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:27.996 19173-19173/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
07-06 11:15:27.998 19173-19173/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:27.999 19173-19173/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:28.028 3194-4560/? D/WifiWatchdogStateMachine:  [|204] []
07-06 11:15:28.057 19173-19173/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:28.057 19173-19173/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:28.133 19173-19173/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:28.156 19173-19173/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:28.160 19173-19173/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:28.160 19173-19173/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:28.162 19173-19173/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:28.172 19173-19173/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am
07-06 11:15:28.185 3194-5296/? I/ActivityManager: START u0 {act=null typ=null flg=0x10000000 cmp=ComponentInfo{com.google.android.perftesting/com.google.android.perftesting.MainActivity}} from uid 2000 on display 0
07-06 11:15:28.197 3194-5296/? D/ActivityManager: ActivityRecord() Constructor : multiScreenAttrs=MultiScreenAttrs{mDisplayId=0, mBaseDisplayId=0, mBaseActivity=false}
07-06 11:15:28.198 6325-6328/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-06 11:15:28.203 3194-5296/? D/CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1804800  uid : 1000  pid : 3194  pkgName : AMS_APP_SWITCH@CPU_MIN@23
07-06 11:15:28.204 3194-5296/? D/ActivityManagerPerformance: AMP_acquire() APP_SWITCH
07-06 11:15:28.205 3194-6922/? D/TelephonyManager: getAllCellInfo : Caller (PID / UID / TID): 3194 / 1000 / 6922
07-06 11:15:28.205 3194-5296/? D/ActivityManager: computeStackFocus: stackId=1
07-06 11:15:28.205 3194-5296/? D/ActivityManager: computeStackFocus: New stack r=ActivityRecord{59706cbd0 u0 com.google.android.perftesting/.MainActivity t-1} stackId=1
07-06 11:15:28.206 3194-5296/? D/ActivityTrigger: Activity is Triggerred in full screen 
07-06 11:15:28.206 3194-5296/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:28.206 3194-5296/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:28.207 3194-5296/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:28.207 3194-5296/? D/ActivityManager: moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{48d44a7d0 #620 A=com.google.android.perftesting U=0 StackId=1 sz=1}
07-06 11:15:28.207 3194-5296/? D/ActivityManager: setFocusStackUnchecked: reason=startedActivity setFocusedActivity focusCandidate=ActivityStack{2075e80d0 stackId=1, 6 tasks} caller=com.android.server.am.ActivityStack.moveToFront:874 com.android.server.am.ActivityStackSupervisor.moveActivityStackToFront:2031 
07-06 11:15:28.209 3194-5296/? D/InputDispatcher: Focused application set to: xxxx
07-06 11:15:28.210 3194-5296/? D/InputDispatcher: Focus left window: 5713
07-06 11:15:28.211 3194-5296/? D/ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{48d44a7d0 #620 A=com.google.android.perftesting U=0 StackId=1 sz=1} next=ActivityRecord{59706cbd0 u0 com.google.android.perftesting/.MainActivity t620} mFocusedStack=ActivityStack{2075e80d0 stackId=1, 6 tasks}
07-06 11:15:28.211 3194-5296/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
07-06 11:15:28.212 3194-5296/? D/GameManagerService: there is not sem_perfomance_mode on setting
07-06 11:15:28.213 5713-5713/? D/Launcher: onPause, Launcher: 229762930
07-06 11:15:28.213 5713-5713/? D/Launcher.HomeView: onPause
07-06 11:15:28.213 5713-5713/? D/Launcher.Workspace: exitWidgetResizeMode. isClearResizeFrame is false
07-06 11:15:28.216 3194-3738/? D/WindowManager: addWindow: android.view.ViewRootImpl$W@644df3e displayId=0
07-06 11:15:28.216 19173-19173/? D/AndroidRuntime: Shutting down VM
07-06 11:15:28.216 3194-5169/? D/ActivityManager: clearAppIconInfo()
07-06 11:15:28.217 3194-5169/? D/SamsungAnimationCreator: setAnimationTriggerActivity type 1
07-06 11:15:28.217 3194-3738/? D/InputTransport: Input channel constructed: fd=624
07-06 11:15:28.217 3194-3738/? D/InputTransport: Input channel constructed: fd=625
07-06 11:15:28.217 3194-3738/? D/WindowManager: openInputChannel mInputChannel: f4c219f Starting com.google.android.perftesting (server)
07-06 11:15:28.218 3194-3738/? D/ViewRootImpl@65fa3f9[perftesting]: setView = DecorView@5a2f2ec[perftesting] touchMode=true
07-06 11:15:28.218 3194-5169/? D/ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{1a3623ed0 #528 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{59706cbd0 u0 com.google.android.perftesting/.MainActivity t620} mFocusedStack=ActivityStack{2075e80d0 stackId=1, 6 tasks}
07-06 11:15:28.218 3194-5169/? D/ActivityManager: applyOptionsLocked(), pendingOptions : null
07-06 11:15:28.219 3194-5169/? D/MountService: getExternalStorageMountMode : 1
07-06 11:15:28.219 3194-5169/? D/MountService: getExternalStorageMountMode : 3
07-06 11:15:28.219 3194-5169/? D/MountService: getExternalStorageMountMode : final mountMode=1, uid : 10359, packageName : com.google.android.perftesting
07-06 11:15:28.220 3194-3738/? D/ViewRootImpl@65fa3f9[perftesting]: dispatchAttachedToWindow
07-06 11:15:28.222 482-482/? I/SurfaceFlinger: id=780 createSurf (1x1),1 flag=404, qerftesting
07-06 11:15:28.230 19233-19233/? E/Zygote: v2
07-06 11:15:28.231 19233-19233/? I/libpersona: KNOX_SDCARD checking this for 10359
07-06 11:15:28.231 19233-19233/? I/libpersona: KNOX_SDCARD not a persona
07-06 11:15:28.231 3194-5169/? I/ActivityManager: Start proc 19233:com.google.android.perftesting/u0a359 for activity com.google.android.perftesting/.MainActivity
07-06 11:15:28.232 19233-19233/? E/Zygote: accessInfo : 0
07-06 11:15:28.232 19233-19233/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0005, [-1 -1 -1 -1 0 1]
07-06 11:15:28.233 19233-19233/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.google.android.perftesting 
07-06 11:15:28.236 19233-19233/? I/art: Late-enabling -Xcheck:jni
07-06 11:15:28.238 3194-3738/? D/ViewRootImpl@65fa3f9[perftesting]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1536,2048] result=0x27 surface={isValid=true 546756811264} surfaceGenerationChanged=true
07-06 11:15:28.239 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: MSG_WINDOW_FOCUS_CHANGED 0
07-06 11:15:28.269 3194-3738/? D/WindowManager: finishDrawingWindow: Window{f4c219fd0 u0 Starting com.google.android.perftesting} mDrawState=DRAW_PENDING
07-06 11:15:28.273 19233-19233/? D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
07-06 11:15:28.276 3194-20860/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:28.276 3194-20860/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:28.276 3194-20860/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:28.276 3194-20860/? I/ActivityManager: DSS on for com.google.android.perftesting and scale is 1.0
07-06 11:15:28.277 3194-20860/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:28.277 3194-20860/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:28.277 3194-20860/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:28.286 3194-20860/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:28.286 3194-20860/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:28.286 3194-20860/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:28.288 3194-20860/? D/GameManagerService: there is not sem_perfomance_mode on setting
07-06 11:15:28.288 3194-3194/? D/GameManagerService: NotifyRunnable. pkg: com.google.android.perftesting, type: 4, isMinimized: false, isTunableApp: false
07-06 11:15:28.288 3194-3194/? D/GameManagerService: unexpected mPrevNotiType: -1
07-06 11:15:28.291 3194-20860/? D/LowEndSamsungAnimationCreator: createSamsungAnimation type/enter : 12/false
07-06 11:15:28.291 3194-20860/? D/LowEndSamsungAnimationCreator: createSamsungAnimation wallpaerXOffset : -256
07-06 11:15:28.291 3194-20860/? D/LowEndSamsungAnimationCreator: createSamsungAnimation isSplit/isFixedOrientation : false/false
07-06 11:15:28.301 3194-6922/? D/GamePkgDataHelper: getGamePkgData(). com.google.android.perftesting
07-06 11:15:28.302 3194-6922/? D/GameManagerService: identifyGamePackage. com.google.android.perftesting
07-06 11:15:28.302 3194-3545/? D/WindowManager: set systemUiVisibility of statusbar : systemUiFlags= 0x608 fullscreenStackSysUiFlag= 0x0
07-06 11:15:28.303 3194-6922/? D/GameManagerService: identifyGamePackage. com.google.android.perftesting
07-06 11:15:28.309 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: mHardwareRenderer.destroy()#1
07-06 11:15:28.310 3194-6922/? D/GameManagerService: identifyGamePackage. com.google.android.perftesting
07-06 11:15:28.317 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
07-06 11:15:28.329 19233-19233/? W/System: ClassLoader referenced unknown path: /data/app/com.google.android.perftesting-1/lib/arm64
07-06 11:15:28.329 3194-6922/? D/SSRM:h: SIOP:: AP = 320, PST = 311 (W:26), CP = 39, LCD = 117
07-06 11:15:28.334 3194-6922/? D/GameManagerService: identifyGamePackage. com.google.android.perftesting
07-06 11:15:28.372 19233-19233/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
07-06 11:15:28.431 3194-4546/? D/MdnieScenarioControlService:  packageName : com.google.android.perftesting    className : com.google.android.perftesting.MainActivity
07-06 11:15:28.458 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: ThreadedRenderer.create() translucent=false
07-06 11:15:28.459 3194-5258/? D/WindowManager: addWindow: android.view.IWindow$Stub$Proxy@83a0433 displayId=0
07-06 11:15:28.461 3194-5258/? D/InputTransport: Input channel constructed: fd=626
07-06 11:15:28.461 3194-5258/? D/InputTransport: Input channel constructed: fd=627
07-06 11:15:28.461 3194-5258/? D/WindowManager: openInputChannel mInputChannel: 8747d69 com.google.android.perftesting/com.google.android.perftesting.MainActivity (server)
07-06 11:15:28.463 3194-5258/? D/InputTransport: Input channel destroyed: fd=627
07-06 11:15:28.463 19233-19233/? D/InputTransport: Input channel constructed: fd=64
07-06 11:15:28.465 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: setView = DecorView@bfb9e2a[MainActivity] touchMode=true
07-06 11:15:28.466 3194-20857/? D/ActivityManager: post active user change for 0 fullscreen true isHomeActivity() false
07-06 11:15:28.466 3194-20857/? D/KnoxTimeoutHandler: postActiveUserChange [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:28.466 3194-3194/? D/KnoxTimeoutHandler: handleActiveUserChange [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:28.467 3194-3194/? I/KnoxTimeoutHandler: Shared devices show user statefalse
07-06 11:15:28.480 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: dispatchAttachedToWindow
07-06 11:15:28.496 482-482/? I/SurfaceFlinger: id=781 createSurf (1536x2048),1 flag=404, NainActivit
07-06 11:15:28.502 3194-5169/? D/InputDispatcher: Focus entered window: 19233
07-06 11:15:28.506 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1536,2048] result=0x7 surface={isValid=true 547778569728} surfaceGenerationChanged=true
07-06 11:15:28.506 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 547778569728} hwInitialized=true
07-06 11:15:28.507 19233-19276/? I/Adreno: QUALCOMM build                   : bc01238, I8e5c908169
                                           Build Date                       : 12/22/16
                                           OpenGL ES Shader Compiler Version: XE031.09.00.03
                                           Local Branch                     : mybranch24102081
                                           Remote Branch                    : quic/LA.BR.1.3.6.c1_rb1.5
                                           Remote Branch                    : NONE
                                           Reconstruct Branch               : NOTHING
07-06 11:15:28.515 19233-19276/? I/OpenGLRenderer: Initialized EGL, version 1.4
07-06 11:15:28.515 19233-19276/? D/OpenGLRenderer: Swap behavior 1
07-06 11:15:28.577 3194-18801/? D/WindowManager: finishDrawingWindow: Window{8747d69d0 u0 com.google.android.perftesting/com.google.android.perftesting.MainActivity} mDrawState=DRAW_PENDING
07-06 11:15:28.577 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
07-06 11:15:28.577 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
07-06 11:15:28.578 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 547778569728}
07-06 11:15:28.588 3194-3738/? D/KnoxTimeoutHandler: notifyActivityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 1
07-06 11:15:28.589 3194-3194/? D/KnoxTimeoutHandler: activityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 1
07-06 11:15:28.589 19233-19233/? I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
07-06 11:15:28.592 3194-5169/? D/InputMethodManagerService: windowGainedFocus mCurrentFocusedUserId - 0 and mSecureKeypadEnabled-false
07-06 11:15:28.592 3194-3194/? I/KnoxTimeoutHandler: SD activityfalse
07-06 11:15:28.592 3194-3194/? I/KnoxTimeoutHandler: Fullscreen and mCurrent is not KNOX user. Hence hide keyguard
07-06 11:15:28.595 3194-3738/? I/ActivityManager: Displayed com.google.android.perftesting/.MainActivity: +377ms
07-06 11:15:28.595 5713-5713/? D/InputTransport: Input channel destroyed: fd=73
07-06 11:15:28.596 3194-5169/? D/InputTransport: Input channel constructed: fd=627
07-06 11:15:28.596 3194-5169/? D/InputTransport: Input channel constructed: fd=630
07-06 11:15:28.596 3194-5169/? D/InputTransport: Input channel destroyed: fd=630
07-06 11:15:28.596 6934-7053/? D/InputTransport: Input channel constructed: fd=74
07-06 11:15:28.599 3194-3738/? D/ViewRootImpl@65fa3f9[perftesting]: dispatchDetachedFromWindow
07-06 11:15:28.599 3194-3738/? D/WindowManager: disposeInputChannel mInputChannel: f4c219f Starting com.google.android.perftesting (server)
07-06 11:15:28.601 6934-6934/? E/FullInputEventModel: onStartInputView event aborted: com.touchtype.keyboard.e.o: Unable to get TouchTypeExtractedText from InputConnection. (class com.touchtype.keyboard.e.o)
07-06 11:15:28.603 6934-6934/? E/FullInputEventModel: selectionUpdated event aborted: com.touchtype.keyboard.e.o: Unable to get TouchTypeExtractedText from InputConnection. (class com.touchtype.keyboard.e.o)
07-06 11:15:28.606 3194-3738/? D/InputTransport: Input channel destroyed: fd=624
07-06 11:15:28.607 3194-3738/? D/InputTransport: Input channel destroyed: fd=625
07-06 11:15:28.607 3194-3738/? D/ViewRootImpl@28523c7[ContainerKeyguardScrim]: mHardwareRenderer.destroy()#1
07-06 11:15:28.607 3194-8458/? D/WindowManager: finishDrawingWindow: Window{8747d69d0 u0 com.google.android.perftesting/com.google.android.perftesting.MainActivity} mDrawState=HAS_DRAWN
07-06 11:15:28.610 3194-5293/? D/InputTransport: Input channel constructed: fd=624
07-06 11:15:28.611 3194-5293/? D/InputTransport: Input channel destroyed: fd=624
07-06 11:15:28.611 19233-19250/? D/InputTransport: Input channel constructed: fd=68
07-06 11:15:28.630 3194-5675/? D/ApplicationPolicy: isStatusBarNotificationAllowedAsUser: packageName = android,userId = -1
07-06 11:15:28.637 4735-4735/? D/PhoneStatusBar: addNotification key=-1|android|17040447|InputMethodManagerService_Noti|1000
07-06 11:15:28.645 3194-17851/? D/ApplicationPolicy: isStatusBarNotificationAllowedAsUser: packageName = android,userId = -1
07-06 11:15:28.673 19233-19233/? E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
07-06 11:15:28.673 19233-19233/? E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
07-06 11:15:28.678 19233-19233/? E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
07-06 11:15:28.678 19233-19233/? E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
07-06 11:15:28.679 3194-18801/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:28.679 3194-18801/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:28.679 3194-18801/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:28.682 19233-19233/? E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
07-06 11:15:28.682 19233-19233/? E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
07-06 11:15:28.696 4735-4735/? D/PhoneStatusBar: No Fullscreen intent: -1|android|17040447|InputMethodManagerService_Noti|1000 isHeadsUped : false
07-06 11:15:28.713 3194-20857/? D/ApplicationPolicy: isStatusBarNotificationAllowedAsUser: packageName = android,userId = -1
07-06 11:15:28.714 3194-3194/? D/CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1804800  uid : 1000  pid : 3194  tag : AMS_APP_SWITCH@CPU_MIN@23
07-06 11:15:28.738 482-482/? I/SurfaceFlinger: id=782 createSurf (1536x2000),1 flag=4, JnputMethod
07-06 11:15:28.758 6934-6934/? D/ViewRootImpl@6ce4a8a[InputMethod]: Relayout returned: oldFrame=[0,48][1536,2048] newFrame=[0,48][1536,2048] result=0x7 surface={isValid=true 547065725952} surfaceGenerationChanged=true
07-06 11:15:28.768 3194-3203/? I/art: Background sticky concurrent mark sweep GC freed 192545(13MB) AllocSpace objects, 37(960KB) LOS objects, 24% free, 45MB/60MB, paused 7.859ms total 153.416ms
07-06 11:15:28.778 4584-4584/? E/wpa_supplicant: IAPP SNAP_HDR Mismatch
07-06 11:15:28.779 4735-4735/? D/ImageWallpaper: onVisibilityChanged: mVisible=true visible=false
07-06 11:15:28.779 4735-4735/? D/ImageWallpaper: Visibility changed to visible=false
07-06 11:15:28.782 6325-6328/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-06 11:15:28.784 3194-3738/? D/CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 883200  uid : 1000  pid : 3194  pkgName : AMS_RESUME_TAIL@CPU_MIN@17
07-06 11:15:28.785 3194-3738/? D/ActivityManagerPerformance: AMP_acquire() TAIL
07-06 11:15:28.786 3194-3738/? D/ActivityManagerPerformance: AMP_release() APP_SWITCH
07-06 11:15:28.786 3194-3542/? D/ActivityTrigger: ActivityTrigger activityStopTrigger 
07-06 11:15:28.789 5713-5713/? D/MenuAppsGridFragment: onStop
07-06 11:15:28.789 5713-5713/? D/Launcher.HomeView: onStop
07-06 11:15:28.789 5713-5713/? D/capture: ----destroy
07-06 11:15:28.793 3194-3738/? D/KnoxTimeoutHandler: notifyActivityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 1
07-06 11:15:28.793 3194-3194/? D/KnoxTimeoutHandler: activityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 1
07-06 11:15:28.795 3194-3194/? I/KnoxTimeoutHandler: SD activityfalse
07-06 11:15:28.795 3194-3738/? I/WindowManager_SurfaceController: Destroying surface Surface(name=Starting com.google.android.perftesting) called by com.android.server.wm.WindowStateAnimator.destroySurface:2957 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1132 com.android.server.wm.WindowState.destroyOrSaveSurface:2682 com.android.server.wm.AppWindowToken.destroySurfaces:425 com.android.server.wm.AppWindowToken.destroySurfaces:389 com.android.server.wm.WindowStateAnimator.finishExit:699 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:583 com.android.server.wm.WindowAnimator.updateWindowsLocked:444 
07-06 11:15:28.795 3194-3194/? I/KnoxTimeoutHandler: Fullscreen and mCurrent is not KNOX user. Hence hide keyguard
07-06 11:15:28.795 482-1903/? I/SurfaceFlinger: id=780 Removed qerftesting (7/13)
07-06 11:15:28.796 3194-4607/? I/SamsungAlarmManager: setLocked to kernel - T:2 / 20170706T111534, SetElapsed=596840000, nowELAPSED=596833839
07-06 11:15:28.800 3194-4607/? D/SamsungAlarmManager: setInexact Intent (T:1/F:0/AC:false) 20170706T121137 - CU:10190/CP:6934
07-06 11:15:28.802 5713-5713/? D/Launcher: onTrimMemory. Level: 20
07-06 11:15:28.805 3194-20860/? I/WindowManager_SurfaceController: Destroying surface Surface(name=com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2957 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1132 com.android.server.wm.WindowState.destroyOrSaveSurface:2682 com.android.server.wm.AppWindowToken.destroySurfaces:425 com.android.server.wm.AppWindowToken.destroySurfaces:389 com.android.server.wm.AppWindowToken.notifyAppStopped:469 com.android.server.wm.WindowManagerService.notifyAppStopped:5369 com.android.server.am.ActivityStack.activityStoppedLocked:1586 
07-06 11:15:28.805 482-13260/? I/SurfaceFlinger: id=779 Removed MauncherAct (1/12)
07-06 11:15:28.806 482-1903/? I/SurfaceFlinger: id=779 Removed MauncherAct (-2/12)
07-06 11:15:28.820 6934-6934/? D/ViewRootImpl@6ce4a8a[InputMethod]: Relayout returned: oldFrame=[0,48][1536,2048] newFrame=[0,48][1536,2048] result=0x1 surface={isValid=true 547065725952} surfaceGenerationChanged=false
07-06 11:15:28.821 3194-3446/? D/WindowManager: addWindow: android.view.IWindow$Stub$Proxy@36775dd displayId=0
07-06 11:15:28.830 482-482/? I/SurfaceFlinger: id=783 createSurf (1536x624),1 flag=4, TurfaceView
07-06 11:15:28.835 6934-6934/? D/SurfaceView: Relayout returned: oldFrame=[0,1424][1536,2048] newFrame=[0,1424][1536,2048] result=0x7 surface={Surface(name=null)/@0x564f0ce isValid=true 547065729536}
07-06 11:15:28.844 3194-18801/? D/WindowManager: finishDrawingWindow: Window{60c6023d0 u0 SurfaceView - InputMethod} mDrawState=DRAW_PENDING
07-06 11:15:28.891 3194-8460/? D/WindowManager: finishDrawingWindow: Window{b535777d0 u0 InputMethod} mDrawState=DRAW_PENDING
07-06 11:15:28.893 19264-19264/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:28.897 19233-19233/? D/ViewRootImpl@9479b15[MainActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 748) or=1
07-06 11:15:28.898 19264-19264/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:28.898 19264-19264/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
07-06 11:15:28.900 6934-6934/? D/SurfaceView: Relayout returned: oldFrame=[0,1424][1536,2048] newFrame=[0,1424][1536,2048] result=0x1 surface={Surface(name=null)/@0x564f0ce isValid=true 547501141504}
07-06 11:15:28.901 19264-19264/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:28.901 3194-17853/? D/WindowManager: finishDrawingWindow: Window{60c6023d0 u0 SurfaceView - InputMethod} mDrawState=HAS_DRAWN
07-06 11:15:28.902 19264-19264/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:28.940 3194-4546/? D/MdnieScenarioControlService:  packageName : com.google.android.perftesting    className : com.google.android.perftesting.MainActivity
07-06 11:15:28.968 19264-19264/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:28.968 19264-19264/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:29.060 19264-19264/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:29.063 2748-2748/? I/MSM-irqbalance: Decided to move IRQ331 from CPU0 to CPU1
07-06 11:15:29.088 19264-19264/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:29.094 19264-19264/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:29.094 19264-19264/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:29.097 19264-19264/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:29.109 19264-19264/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am
07-06 11:15:29.113 3194-5259/? I/ActivityManager: Force stopping com.google.android.perftesting appid=10359 user=0: start instr
07-06 11:15:29.114 3194-5259/? I/ActivityManager: Killing 19233:com.google.android.perftesting/u0a359 (adj 0): stop com.google.android.perftesting cause start instr
07-06 11:15:29.115 3194-5259/? D/ActivityManager: cleanUpApplicationRecord -- 19233
07-06 11:15:29.116 3194-5259/? W/ActivityManager: Force removing ActivityRecord{59706cbd0 u0 com.google.android.perftesting/.MainActivity t620}: app died, no saved state
07-06 11:15:29.116 3194-5259/? W/MultiScreenManagerService: moveTaskBackToDisplayIfNeeded(): root is not base activity
07-06 11:15:29.118 3194-5259/? D/GameManagerService: there is not sem_perfomance_mode on setting
07-06 11:15:29.122 3194-5259/? D/InputDispatcher: Focus left window: 19233
07-06 11:15:29.123 3194-5259/? D/WindowManager: disposeInputChannel mInputChannel: 8747d69 com.google.android.perftesting/com.google.android.perftesting.MainActivity (server)
07-06 11:15:29.124 3194-5259/? I/WindowManager_SurfaceController: Destroying surface Surface(name=com.google.android.perftesting/com.google.android.perftesting.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2957 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1132 com.android.server.wm.WindowState.removeLocked:1872 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2943 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2903 com.android.server.wm.WindowManagerService.removeWindowLocked:2883 com.android.server.wm.WindowManagerService.removeWindowLocked:2693 com.android.server.wm.AppWindowToken.removeAllWindows:609 
07-06 11:15:29.125 482-496/? I/SurfaceFlinger: id=781 Removed NainActivit (4/12)
07-06 11:15:29.125 482-496/? I/SurfaceFlinger: id=781 Removed NainActivit (-2/12)
07-06 11:15:29.128 3194-5259/? D/InputTransport: Input channel destroyed: fd=626
07-06 11:15:29.129 3194-5259/? D/InputDispatcher: Focused application released
07-06 11:15:29.130 3194-3738/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 60)
07-06 11:15:29.132 3194-5259/? D/ActivityManager: moveToFront() : reason=appDied setFocusedActivity isAttached=true TaskRecord{1a3623ed0 #528 A=com.sec.android.app.launcher U=0 StackId=0 sz=1}
07-06 11:15:29.133 3194-5259/? D/ActivityManager: setFocusStackUnchecked: reason=appDied setFocusedActivity focusCandidate=ActivityStack{5f08e89d0 stackId=0, 2 tasks} caller=com.android.server.am.ActivityStack.moveToFront:874 com.android.server.am.ActivityStackSupervisor.moveActivityStackToFront:2031 
07-06 11:15:29.133 3194-5259/? W/MultiScreenManagerService: failed to move task TaskRecord{48d44a7d0 #620 A=com.google.android.perftesting U=0 StackId=1 sz=0}
07-06 11:15:29.137 3194-5259/? D/InputDispatcher: Focused application set to: xxxx
07-06 11:15:29.139 3194-5259/? D/ActivityManager: resumeTopActivityInnerLocked() : #0 prevTask=null next=ActivityRecord{847a8f2d0 u0 com.sec.android.app.launcher/.activities.LauncherActivity t528} mFocusedStack=ActivityStack{5f08e89d0 stackId=0, 2 tasks}
07-06 11:15:29.141 3194-5259/? D/CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1305600  uid : 1000  pid : 3194  pkgName : AMS_APP_HOME@CPU_MIN@49
07-06 11:15:29.143 3194-5259/? D/ActivityManagerPerformance: AMP_acquire() HOME
07-06 11:15:29.143 3194-5259/? D/ActivityManager: applyOptionsLocked(), pendingOptions : null
07-06 11:15:29.153 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: mHardwareRenderer.destroy()#1
07-06 11:15:29.154 3194-5259/? D/GameManagerService: there is not sem_perfomance_mode on setting
07-06 11:15:29.154 3194-3194/? D/GameManagerService: NotifyRunnable. pkg: com.sec.android.app.launcher, type: 4, isMinimized: false, isTunableApp: false
07-06 11:15:29.154 3194-3194/? D/GameManagerService: unexpected mPrevNotiType: -1
07-06 11:15:29.158 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x1 surface={isValid=false 0} surfaceGenerationChanged=false
07-06 11:15:29.158 5713-5713/? D/Launcher: onRestart, Launcher: 229762930
07-06 11:15:29.165 5713-5713/? D/Qmage: NewFromStream
07-06 11:15:29.165 5713-5713/? D/Qmage: ParseHeader
07-06 11:15:29.165 5713-5713/? D/Qmage: decode QG
07-06 11:15:29.165 5713-5713/? D/Qmage: QuramQmageDecParseHeader s
07-06 11:15:29.165 5713-5713/? D/Qmage: QuramQmageDecParseHeader e
07-06 11:15:29.165 5713-5713/? D/Qmage: colorType 4
07-06 11:15:29.165 5713-5713/? D/Qmage: kPremul_SkAlphaType
07-06 11:15:29.165 5713-5713/? D/Qmage: requestedInfo kPremul_SkAlphaType
07-06 11:15:29.165 5713-5713/? D/Qmage: requestedInfo k32_SkColorType
07-06 11:15:29.165 5713-5713/? D/Qmage: conversion_possible s
07-06 11:15:29.165 5713-5713/? D/Qmage: Qmage colorType: 4
07-06 11:15:29.165 5713-5713/? D/Qmage: Qmage width height: 144, 144
07-06 11:15:29.165 5713-5713/? D/Qmage: Qmage bpp: 4
07-06 11:15:29.165 5713-5713/? D/Qmage: storage.reset: 82944
07-06 11:15:29.165 5713-5713/? D/Qmage: SampleConf.Crop : 1
07-06 11:15:29.165 5713-5713/? D/Qmage: SampleConf.Scale : 0
07-06 11:15:29.165 5713-5713/? D/Qmage: QuramQmageDecodeFrame.start
07-06 11:15:29.166 3194-5259/? D/MountService: getExternalStorageMountMode : 1
07-06 11:15:29.166 3194-5259/? D/MountService: getExternalStorageMountMode : 3
07-06 11:15:29.166 3194-5259/? D/MountService: getExternalStorageMountMode : final mountMode=1, uid : 10359, packageName : com.google.android.perftesting
07-06 11:15:29.166 5713-5713/? D/Qmage: QuramQmageDecodeFrame.end
07-06 11:15:29.167 5713-5713/? D/Qmage: destroyReadStruct
07-06 11:15:29.168 5713-5713/? D/ApplicationPackageManager: we has com.samsung.android.calendar class. reuse it 
07-06 11:15:29.169 3194-8189/? D/GraphicsStats: Buffer count: 9
07-06 11:15:29.169 3194-5295/? D/InputTransport: Input channel destroyed: fd=627
07-06 11:15:29.170 6934-6934/? D/InputTransport: Input channel destroyed: fd=74
07-06 11:15:29.172 5713-5713/? D/Qmage: NewFromStream
07-06 11:15:29.172 5713-5713/? D/Qmage: ParseHeader
07-06 11:15:29.172 5713-5713/? D/Qmage: decode QG
07-06 11:15:29.172 5713-5713/? D/Qmage: QuramQmageDecParseHeader s
07-06 11:15:29.172 5713-5713/? D/Qmage: QuramQmageDecParseHeader e
07-06 11:15:29.172 5713-5713/? D/Qmage: colorType 4
07-06 11:15:29.172 5713-5713/? D/Qmage: kPremul_SkAlphaType
07-06 11:15:29.172 5713-5713/? D/Qmage: requestedInfo kPremul_SkAlphaType
07-06 11:15:29.172 5713-5713/? D/Qmage: requestedInfo k32_SkColorType
07-06 11:15:29.172 5713-5713/? D/Qmage: conversion_possible s
07-06 11:15:29.172 5713-5713/? D/Qmage: Qmage colorType: 4
07-06 11:15:29.172 5713-5713/? D/Qmage: Qmage width height: 144, 144
07-06 11:15:29.172 5713-5713/? D/Qmage: Qmage bpp: 4
07-06 11:15:29.172 5713-5713/? D/Qmage: storage.reset: 82944
07-06 11:15:29.172 5713-5713/? D/Qmage: SampleConf.Crop : 1
07-06 11:15:29.172 5713-5713/? D/Qmage: SampleConf.Scale : 0
07-06 11:15:29.172 5713-5713/? D/Qmage: QuramQmageDecodeFrame.start
07-06 11:15:29.173 5713-5713/? D/Qmage: QuramQmageDecodeFrame.end
07-06 11:15:29.173 5713-5713/? D/Qmage: destroyReadStruct
07-06 11:15:29.177 5713-5713/? I/ApplicationPackageManager: load= live icon for com.samsung.android.calendar, from overlay = false
07-06 11:15:29.182 19370-19370/? E/Zygote: v2
07-06 11:15:29.182 19370-19370/? I/libpersona: KNOX_SDCARD checking this for 10359
07-06 11:15:29.182 19370-19370/? I/libpersona: KNOX_SDCARD not a persona
07-06 11:15:29.183 19370-19370/? E/Zygote: accessInfo : 0
07-06 11:15:29.184 19370-19370/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0005, [-1 -1 -1 -1 0 1]
07-06 11:15:29.185 19370-19370/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.google.android.perftesting 
07-06 11:15:29.188 19370-19370/? I/art: Late-enabling -Xcheck:jni
07-06 11:15:29.192 3194-5259/? I/ActivityManager: Start proc 19370:com.google.android.perftesting/u0a359 for added application com.google.android.perftesting
07-06 11:15:29.197 5713-5713/? D/Launcher: onStart, Launcher: 229762930
07-06 11:15:29.197 5713-5713/? D/Launcher.HomeView: onStart
07-06 11:15:29.197 5713-5713/? D/MenuAppsGridFragment: onStart:false
07-06 11:15:29.197 5713-5713/? I/VerificationLog: onResume
07-06 11:15:29.197 5713-5713/? D/Launcher: onResume, Launcher: 229762930
07-06 11:15:29.198 3194-6922/? D/GamePkgDataHelper: getGamePkgData(). com.sec.android.app.launcher
07-06 11:15:29.199 3194-6922/? D/GameManagerService: identifyGamePackage. com.sec.android.app.launcher
07-06 11:15:29.199 3194-5675/? D/SecContentProvider: query(), uri = 17 selection = isSettingsChangesAllowed
07-06 11:15:29.200 3194-5675/? D/SecContentProvider: called from com.sec.android.app.launcher
07-06 11:15:29.200 3194-5675/? D/RestrictionPolicy: isSettingsChangesAllowedAsUser, userId 0 : true
07-06 11:15:29.201 3194-4601/? D/SecContentProvider: query(), uri = 17 selection = isSettingsChangesAllowed
07-06 11:15:29.202 3194-4601/? D/SecContentProvider: called from com.sec.android.app.launcher
07-06 11:15:29.202 3194-4601/? D/RestrictionPolicy: isSettingsChangesAllowedAsUser, userId 0 : true
07-06 11:15:29.203 3194-6922/? D/TelephonyManager: getAllCellInfo : Caller (PID / UID / TID): 3194 / 1000 / 6922
07-06 11:15:29.204 5713-5713/? D/Launcher.HomeView: onResume
07-06 11:15:29.211 19370-19370/? D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
07-06 11:15:29.212 3194-6922/? D/GameManagerService: identifyGamePackage. com.sec.android.app.launcher
07-06 11:15:29.212 5713-5713/? D/MenuAppsGridFragment: onResume:false
07-06 11:15:29.212 5713-5713/? D/MenuAppsGridFragment: stateObj = com.android.launcher2.MenuAppsGrid$StateNormal@e81ac04
07-06 11:15:29.213 5713-5713/? D/Launcher.MenuAppsGrid: BlurInfo : true , true
07-06 11:15:29.213 5713-5713/? D/MenuAppsGridFragment: onResume  no mPendingModelUpdate:false this:MenuAppsGridFragment{eb7a5ed #0 id=0x1020011 APPS}
07-06 11:15:29.214 3194-17853/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:29.214 3194-17853/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:29.214 3194-17853/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:29.214 3194-17853/? I/ActivityManager: DSS on for com.google.android.perftesting and scale is 1.0
07-06 11:15:29.214 5713-5713/? D/Launcher.MenuAppsGrid: ChangeMobileKeyboard:false mCurrentOrientation:1 mRequestedOrientation:1 newConfig.orientation:1 isShown:true
07-06 11:15:29.215 3194-17853/? D/CompatibilityInfo: mCompatibilityFlags - 4
07-06 11:15:29.215 3194-17853/? D/CompatibilityInfo: applicationDensity - 320
07-06 11:15:29.215 3194-17853/? D/CompatibilityInfo: applicationScale - 1.0
07-06 11:15:29.221 5713-5713/? D/Qmage: NewFromStream
07-06 11:15:29.221 5713-5713/? D/Qmage: ParseHeader
07-06 11:15:29.221 5713-5713/? D/Qmage: decode QG
07-06 11:15:29.221 5713-5713/? D/Qmage: QuramQmageDecParseHeader s
07-06 11:15:29.221 5713-5713/? D/Qmage: QuramQmageDecParseHeader e
07-06 11:15:29.221 5713-5713/? D/Qmage: colorType 4
07-06 11:15:29.221 5713-5713/? D/Qmage: kPremul_SkAlphaType
07-06 11:15:29.221 5713-5713/? D/Qmage: requestedInfo kPremul_SkAlphaType
07-06 11:15:29.221 5713-5713/? D/Qmage: requestedInfo k32_SkColorType
07-06 11:15:29.221 5713-5713/? D/Qmage: conversion_possible s
07-06 11:15:29.221 5713-5713/? D/Qmage: Qmage colorType: 4
07-06 11:15:29.221 5713-5713/? D/Qmage: Qmage width height: 144, 144
07-06 11:15:29.221 5713-5713/? D/Qmage: Qmage bpp: 4
07-06 11:15:29.221 5713-5713/? D/Qmage: storage.reset: 82944
07-06 11:15:29.221 5713-5713/? D/Qmage: SampleConf.Crop : 1
07-06 11:15:29.221 5713-5713/? D/Qmage: SampleConf.Scale : 0
07-06 11:15:29.221 5713-5713/? D/Qmage: QuramQmageDecodeFrame.start
07-06 11:15:29.222 5713-5713/? D/Qmage: QuramQmageDecodeFrame.end
07-06 11:15:29.223 5713-5713/? D/Qmage: destroyReadStruct
07-06 11:15:29.224 5713-5713/? D/ApplicationPackageManager: we has com.sec.android.app.clockpackage class. reuse it 
07-06 11:15:29.224 5713-5713/? D/LiveIconLoader: getLiveIcon was called in ClockPackage
07-06 11:15:29.229 3194-6922/? D/SSRM:h: SIOP:: AP = 330, PST = 312 (W:26), CP = 41, LCD = 117
07-06 11:15:29.230 5713-5713/? D/LiveIconLoader: getLiveIcon res = com.sec.android.app.clockpackage
07-06 11:15:29.231 5713-5713/? D/LiveIconLoader: stdIconSize : 96 , targetIconSize : 144
07-06 11:15:29.231 5713-5713/? D/LiveIconLoader: mIconDpi : 480 , mTargetIconDpi : 320
07-06 11:15:29.235 3194-6922/? D/GameManagerService: identifyGamePackage. com.sec.android.app.launcher
07-06 11:15:29.238 5713-5713/? I/ApplicationPackageManager: load= live icon for com.sec.android.app.clockpackage, from overlay = false
07-06 11:15:29.241 5713-5713/? D/Launcher.Workspace: changeOrientationIfRequired MobileKeyboardChanged : false   DisplayHeight : 2048  Density : 2.0   newConfig.orientation : 1
07-06 11:15:29.241 5713-5713/? D/Launcher.Workspace: ChangeMobileKeyboard:false mCurrentOrientation:1 mRequestedOrientation:1 newConfig.orientation:1 isShown:falseQuickViewWorkspace isOpened: false
07-06 11:15:29.243 19370-19370/? W/System: ClassLoader referenced unknown path: /data/app/com.google.android.perftesting.test-2/lib/arm64
07-06 11:15:29.243 19370-19370/? W/System: ClassLoader referenced unknown path: /data/app/com.google.android.perftesting-1/lib/arm64
07-06 11:15:29.244 3194-5707/? D/ActivityManager: post active user change for 0 fullscreen true isHomeActivity() true
07-06 11:15:29.244 3194-5707/? I/WallpaperManagerService: switchPersonaWallpaper is called for personaId-0
07-06 11:15:29.244 3194-5707/? D/KnoxTimeoutHandler: post home show event for user 0
07-06 11:15:29.244 3194-3194/? D/WallpaperManagerService:  force update = false; persona id = 0; current user =0; current persona = 0
07-06 11:15:29.244 3194-3194/? D/KnoxKeyguardDelegate: clear Flag
07-06 11:15:29.244 3194-3194/? D/KnoxTimeoutHandler: handleHomeShow for 0 and current 0
07-06 11:15:29.244 3194-5707/? D/KnoxTimeoutHandler: postActiveUserChange [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:29.244 3194-3194/? D/KnoxTimeoutHandler: handleActiveUserChange [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:29.245 3194-3194/? I/KnoxTimeoutHandler: Shared devices show user statefalse
07-06 11:15:29.246 5713-5713/? D/LauncherAppWidgetHostView: calculateWidgetSize() widget = Wetter und Uhr(widget id = 2) result hostview size = 1480 x 636
07-06 11:15:29.246 5713-5713/? D/LauncherAppWidgetHostView: setResizeScaleResult() 1480/ 636 scaleToResize = 1.0(widget id = 2)
07-06 11:15:29.246 5713-5713/? D/LauncherAppWidgetHostView: calculateWidgetSize() widget = Google(widget id = 3) result hostview size = 1480 x 308
07-06 11:15:29.246 5713-5713/? D/LauncherAppWidgetHostView: setResizeScaleResult() 1480/ 308 scaleToResize = 1.0(widget id = 3)
07-06 11:15:29.247 482-482/? I/SurfaceFlinger: id=784 createSurf (1536x2048),1 flag=4, MauncherAct
07-06 11:15:29.249 3194-3545/? D/WindowManager: set systemUiVisibility of statusbar : systemUiFlags= 0x608 fullscreenStackSysUiFlag= 0x0
07-06 11:15:29.253 482-482/? D/Layer: applyEffect ## com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity
07-06 11:15:29.253 482-482/? D/Layer: applyEffect ## animMode=3, target=2, pixType=1
07-06 11:15:29.253 482-482/? D/Layer: applyEffect ## pixAnim anim=13, timeMs=0, value=0.00, interp=0
07-06 11:15:29.253 3194-5296/? D/InputDispatcher: Focus entered window: 5713
07-06 11:15:29.253 482-482/? D/Layer: applyEffect ## pixAnim anim=13, timeMs=0, value=88.00, interp=3
07-06 11:15:29.253 482-482/? D/Layer: applyEffect ## pixAnim anim=14, timeMs=0, value=0.00, interp=0
07-06 11:15:29.253 482-482/? D/Layer: applyEffect ## pixAnim anim=14, timeMs=0, value=-10.00, interp=3
07-06 11:15:29.254 19370-19370/? W/System: ClassLoader referenced unknown path: 
07-06 11:15:29.255 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: Relayout returned: oldFrame=[0,0][1536,2048] newFrame=[0,0][1536,2048] result=0x7 surface={isValid=true 547225902592} surfaceGenerationChanged=true
07-06 11:15:29.255 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 547225902592} hwInitialized=true
07-06 11:15:29.282 3194-3194/? D/CustomFrequencyManagerService: FrequencyrequestList.getNextMaxCPUCoreRequest, index: 1
07-06 11:15:29.285 3194-5293/? D/WindowManager: finishDrawingWindow: Window{8b677e1d0 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} mDrawState=DRAW_PENDING
07-06 11:15:29.285 3194-3194/? D/CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 883200  uid : 1000  pid : 3194  tag : AMS_RESUME_TAIL@CPU_MIN@17
07-06 11:15:29.285 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: MSG_WINDOW_FOCUS_CHANGED 1
07-06 11:15:29.286 5713-5713/? D/ViewRootImpl@b0e0c22[LauncherActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 547225902592}
07-06 11:15:29.286 19370-19370/? I/MonitoringInstrumentation: Instrumentation Started!
07-06 11:15:29.287 4735-4735/? D/WallpaperService: updateSurface forceRelayout=false redrawNeeded=false myWidth=2048 myHeight=2048 fixedSize=true mWidth=2048 mHeight=2048
07-06 11:15:29.287 4735-4735/? D/ImageWallpaper: onVisibilityChanged: mVisible=false visible=true
07-06 11:15:29.287 4735-4735/? D/ImageWallpaper: Visibility changed to visible=true
07-06 11:15:29.287 4735-4735/? D/ImageWallpaper: drawFrame=false rotation=0 mLastRotation=0
07-06 11:15:29.287 4735-4735/? D/ImageWallpaper: drawFrame:[frame.width()]2048[frame.height()]2048
07-06 11:15:29.287 4735-4735/? D/ImageWallpaper: surfaceDimensionsChanged=false mLastSurfaceRotation=0 mDisplayWidth=-1 mDisplayHeight=-1
07-06 11:15:29.288 4735-4735/? D/ImageWallpaper: redrawNeeded = false, mOffsetsChanged = false
07-06 11:15:29.288 4735-4735/? D/ImageWallpaper: Suppressed drawFrame since redraw is not needed and offsets have not changed.
07-06 11:15:29.288 19370-19370/? I/MonitoringInstrumentation: Setting context classloader to 'dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.google.android.perftesting.test-2/base.apk", zip file "/data/app/com.google.android.perftesting-1/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.perftesting.test-2/lib/arm64, /data/app/com.google.android.perftesting-1/lib/arm64, /system/lib64, /vendor/lib64]]]', Original: 'dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.google.android.perftesting.test-2/base.apk", zip file "/data/app/com.google.android.perftesting-1/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.perftesting.test-2/lib/arm64, /data/app/com.google.android.perftesting-1/lib/arm64, /system/lib64, /vendor/lib64]]]'
07-06 11:15:29.288 5713-5713/? I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
07-06 11:15:29.288 3194-4601/? D/InputMethodManagerService: windowGainedFocus mCurrentFocusedUserId - 0 and mSecureKeypadEnabled-false
07-06 11:15:29.290 3194-3738/? D/LowEndSamsungAnimationCreator: createSamsungAnimation type/enter : 13/false
07-06 11:15:29.290 3194-3738/? D/LowEndSamsungAnimationCreator: createSamsungAnimation wallpaerXOffset : -256
07-06 11:15:29.290 19370-19370/? I/MonitoringInstrumentation: No JSBridge.
07-06 11:15:29.290 3194-3738/? D/LowEndSamsungAnimationCreator: createSamsungAnimation isSplit/isFixedOrientation : false/false
07-06 11:15:29.292 4735-4760/? D/WallpaperService: resized:[frame]Rect(0, 0 - 2048, 2048) [newConfig] is null
07-06 11:15:29.292 4735-4735/? D/WallpaperService: MSG_WINDOW_RESIZED
07-06 11:15:29.293 4735-4735/? D/WallpaperService: updateSurface forceRelayout=true redrawNeeded=false myWidth=2048 myHeight=2048 fixedSize=true mWidth=2048 mHeight=2048
07-06 11:15:29.293 19370-19397/? D/InfraTrack: Tracking disabled due to lack of internet permissions
07-06 11:15:29.293 19370-19397/? I/UsageTrackerFacilitator: Usage tracking disabled
07-06 11:15:29.293 19370-19397/? I/TestRequestBuilder: Scanning classpath to find tests in apks [/data/app/com.google.android.perftesting.test-2/base.apk]
07-06 11:15:29.298 3194-4601/? E/InputMethodManagerService: Perflock object null
07-06 11:15:29.298 3194-4601/? D/InputTransport: Input channel constructed: fd=458
07-06 11:15:29.298 3194-4601/? D/InputTransport: Input channel destroyed: fd=458
07-06 11:15:29.299 5713-5713/? D/InputTransport: Input channel constructed: fd=73
07-06 11:15:29.300 3194-3194/? D/LightsService: [api] [SvcLED] turnOff:: id = 6 (uid: 1000 pid: 3194) 
07-06 11:15:29.300 3194-3194/? D/LightsService: [api] [SvcLED] LED indicator : Not supported.
07-06 11:15:29.301 4735-4735/? D/ImageWallpaper: onOffsetsChanged: xOffset=0.0, yOffset=0.0, xOffsetStep=0.0, yOffsetStep=0.0, xPixels=0, yPixels=0
07-06 11:15:29.302 4735-4735/? D/ImageWallpaper: drawFrame=false rotation=0 mLastRotation=0
07-06 11:15:29.302 4735-4735/? D/ImageWallpaper: drawFrame:[frame.width()]2048[frame.height()]2048
07-06 11:15:29.302 4735-4735/? D/ImageWallpaper: surfaceDimensionsChanged=false mLastSurfaceRotation=0 mDisplayWidth=-1 mDisplayHeight=-1
07-06 11:15:29.302 4735-4735/? D/ImageWallpaper: redrawNeeded = false, mOffsetsChanged = false
07-06 11:15:29.303 4735-4735/? D/ImageWallpaper: Suppressed drawFrame since redraw is not needed and offsets have not changed.
07-06 11:15:29.305 3194-3738/? D/KnoxTimeoutHandler: notifyActivityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:29.305 3194-3194/? D/KnoxTimeoutHandler: activityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:29.308 3194-3194/? I/KnoxTimeoutHandler: SD activityfalse
07-06 11:15:29.308 3194-3194/? I/KnoxTimeoutHandler: Fullscreen and mCurrent is not KNOX user. Hence hide keyguard
07-06 11:15:29.330 6934-6934/? E/FullInputEventModel: onStartInput event aborted: com.touchtype.keyboard.e.p: could not obtain extracted text (class com.touchtype.keyboard.e.p)
07-06 11:15:29.331 3194-4546/? D/MdnieScenarioControlService:  packageName : com.sec.android.app.launcher    className : com.sec.android.app.launcher.activities.LauncherActivity
07-06 11:15:29.337 6934-6934/? D/SurfaceView: Relayout returned: oldFrame=[0,1424][1536,2048] newFrame=[0,1424][1536,2048] result=0x5 surface={Surface(name=null)/@0x564f0ce isValid=false 0}
07-06 11:15:29.348 3194-5258/? I/WindowManager_SurfaceController: Destroying surface Surface(name=SurfaceView - InputMethod) called by com.android.server.wm.WindowStateAnimator.destroyDeferredSurfaceLocked:1166 com.android.server.wm.WindowManagerService.performDeferredDestroyWindow:3689 com.android.server.wm.Session.performDeferredDestroy:240 android.view.IWindowSession$Stub.onTransact:407 com.android.server.wm.Session.onTransact:151 android.os.Binder.execTransact:573 <bottom of call stack> <bottom of call stack> 
07-06 11:15:29.348 482-1904/? I/SurfaceFlinger: id=783 Removed TurfaceView (6/12)
07-06 11:15:29.348 482-496/? I/SurfaceFlinger: id=783 Removed TurfaceView (-2/12)
07-06 11:15:29.353 3194-8188/? I/WindowManager_SurfaceController: Destroying surface Surface(name=InputMethod) called by com.android.server.wm.WindowStateAnimator.destroySurface:2957 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1132 com.android.server.wm.WindowState.destroyOrSaveSurface:2682 com.android.server.wm.WindowManagerService.tryStartExitingAnimation:3592 com.android.server.wm.WindowManagerService.relayoutWindow:3447 com.android.server.wm.Session.relayout:230 android.view.IWindowSession$Stub.onTransact:288 com.android.server.wm.Session.onTransact:151 
07-06 11:15:29.353 482-1904/? I/SurfaceFlinger: id=782 Removed JnputMethod (5/11)
07-06 11:15:29.353 482-496/? I/SurfaceFlinger: id=782 Removed JnputMethod (-2/11)
07-06 11:15:29.358 4735-18411/? D/WallpaperService: resized:[frame]Rect(0, 0 - 2048, 2048) [newConfig] is null
07-06 11:15:29.358 4735-4735/? D/WallpaperService: MSG_WINDOW_RESIZED
07-06 11:15:29.358 4735-4735/? D/WallpaperService: updateSurface forceRelayout=true redrawNeeded=false myWidth=2048 myHeight=2048 fixedSize=true mWidth=2048 mHeight=2048
07-06 11:15:29.361 6934-6934/? D/ViewRootImpl@6ce4a8a[InputMethod]: Relayout returned: oldFrame=[0,48][1536,2048] newFrame=[0,48][1536,2048] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
07-06 11:15:29.371 6934-7024/? W/KeyPressModelHandlerImpl: Attempted to save before layout configured.
07-06 11:15:29.380 4735-4735/? D/ImageWallpaper: onOffsetsChanged: xOffset=0.0, yOffset=0.0, xOffsetStep=0.0, yOffsetStep=0.0, xPixels=0, yPixels=0
07-06 11:15:29.381 4735-4735/? D/ImageWallpaper: drawFrame=false rotation=0 mLastRotation=0
07-06 11:15:29.381 4735-4735/? D/ImageWallpaper: drawFrame:[frame.width()]2048[frame.height()]2048
07-06 11:15:29.381 4735-4735/? D/ImageWallpaper: surfaceDimensionsChanged=false mLastSurfaceRotation=0 mDisplayWidth=-1 mDisplayHeight=-1
07-06 11:15:29.381 4735-4735/? D/ImageWallpaper: redrawNeeded = false, mOffsetsChanged = false
07-06 11:15:29.381 4735-4735/? D/ImageWallpaper: Suppressed drawFrame since redraw is not needed and offsets have not changed.
07-06 11:15:29.595 4584-4584/? E/wpa_supplicant: IAPP SNAP_HDR Mismatch
07-06 11:15:29.644 3194-3194/? D/CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1305600  uid : 1000  pid : 3194  tag : AMS_APP_HOME@CPU_MIN@49
07-06 11:15:29.667 3194-3738/? D/KnoxTimeoutHandler: notifyActivityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:29.667 3194-3194/? D/KnoxTimeoutHandler: activityDrawn [MsgParam] userId: 0 fullscreen is true showWhenlocked is false isMutiwindowRecord is false multiwindowstyle is 0
07-06 11:15:29.669 3194-3194/? I/KnoxTimeoutHandler: SD activityfalse
07-06 11:15:29.669 3194-3194/? I/KnoxTimeoutHandler: Fullscreen and mCurrent is not KNOX user. Hence hide keyguard
07-06 11:15:29.785 19370-19397/? D/TestExecutor: Adding listener android.support.test.internal.runner.listener.LogRunListener
07-06 11:15:29.785 19370-19397/? D/TestExecutor: Adding listener android.support.test.internal.runner.listener.InstrumentationResultPrinter
07-06 11:15:29.785 19370-19397/? D/TestExecutor: Adding listener android.support.test.internal.runner.listener.ActivityFinisherRunListener
07-06 11:15:29.785 19370-19397/? D/TestExecutor: Adding listener com.google.android.perftesting.TestListener
07-06 11:15:29.786 19370-19397/? I/TestRunner: run started: 1 tests
07-06 11:15:29.786 19370-19397/? I/TestRunner: run finished: 0 tests, 0 failed, 0 ignored
07-06 11:15:29.787 19370-19397/? I/MonitoringInstrumentation: waitForActivitiesToComplete() took: 0ms
07-06 11:15:29.788 19370-19370/? I/MonitoringInstrumentation: Activities that are still in CREATED to STOPPED: 0
07-06 11:15:29.789 3194-18801/? I/ActivityManager: Force stopping com.google.android.perftesting appid=10359 user=0: finished inst
07-06 11:15:29.790 3194-18801/? I/ActivityManager: Killing 19370:com.google.android.perftesting/u0a359 (adj 0): stop com.google.android.perftesting cause finished inst
07-06 11:15:29.791 3194-18801/? D/ActivityManager: cleanUpApplicationRecord -- 19370
07-06 11:15:29.791 19264-19264/? D/AndroidRuntime: Shutting down VM
07-06 11:15:29.795 5713-6132/? W/OpenGLRenderer: Incorrectly called buildLayer on View: CellLayoutChildren, destroying layer...
07-06 11:15:29.795 5713-6132/? W/OpenGLRenderer: Incorrectly called buildLayer on View: CellLayoutChildren, destroying layer...
07-06 11:15:29.804 19264-19452/? W/art: Thread attaching while runtime is shutting down: Binder:19264_3
07-06 11:15:29.804 19264-19452/? I/AndroidRuntime: NOTE: attach of thread 'Binder:19264_3' failed
07-06 11:15:30.239 4584-4584/? E/wpa_supplicant: IAPP SNAP_HDR Mismatch
07-06 11:15:30.582 3194-3542/? I/ActivityManager: Waited long enough for: ServiceRecord{a242fe0 u0 de.amazon.mShop.android/com.amazon.mas.client.locker.service.appmgr.AppManagerService}
07-06 11:15:30.885 18918-18918/? D/MonkeyStub: Quit requested
07-06 11:15:30.888 3194-17853/? E/ActivityManager: getPackageFromAppProcesses, return null
07-06 11:15:30.891 3194-3545/? D/SensorService: [SO] activate (ident=0x7f47b301c0, enabled=0)
07-06 11:15:30.896 5713-5713/? D/LauncherAppWidgetHostView: calculateWidgetSize() widget = Wetter und Uhr(widget id = 2) result hostview size = 1480 x 636
07-06 11:15:30.896 5713-5713/? D/LauncherAppWidgetHostView: setResizeScaleResult() 1480/ 636 scaleToResize = 1.0(widget id = 2)
07-06 11:15:30.897 5713-5713/? D/LauncherAppWidgetHostView: calculateWidgetSize() widget = Google(widget id = 3) result hostview size = 1480 x 308
07-06 11:15:30.897 5713-5713/? D/LauncherAppWidgetHostView: setResizeScaleResult() 1480/ 308 scaleToResize = 1.0(widget id = 3)
07-06 11:15:30.900 3194-3545/? D/SensorHAL: lsm6ds3_accel: power-off.
07-06 11:15:30.900 3194-3545/? D/SensorManager: unregisterListener ::   
07-06 11:15:30.917 5713-5713/? D/LauncherAppWidgetHostView: calculateWidgetSize() widget = Wetter und Uhr(widget id = 2) result hostview size = 1480 x 636
07-06 11:15:30.917 5713-5713/? D/LauncherAppWidgetHostView: setResizeScaleResult() 1480/ 636 scaleToResize = 1.0(widget id = 2)
07-06 11:15:30.920 5713-5713/? D/LauncherAppWidgetHostView: calculateWidgetSize() widget = Google(widget id = 3) result hostview size = 1480 x 308
07-06 11:15:30.920 5713-5713/? D/LauncherAppWidgetHostView: setResizeScaleResult() 1480/ 308 scaleToResize = 1.0(widget id = 3)
07-06 11:15:30.921 3194-3545/? D/SensorService: [SO] changed settle time [1], handle [1600221811]
07-06 11:15:30.921 3194-3545/? D/SensorService: [SO] setDelay [66667000]
07-06 11:15:30.921 3194-3545/? D/SensorService: [SO] activate (ident=0x7f47b301c0, enabled=1)
07-06 11:15:30.921 3194-3545/? D/SensorService: [SO] AR_init
07-06 11:15:30.924 3194-3545/? D/SensorHAL: lsm6ds3_accel: set sampling frequency to 15.0Hz.
07-06 11:15:30.924 3194-3545/? D/SensorHAL: lsm6ds3_accel: power-on.
07-06 11:15:30.924 3194-3545/? D/SensorManager: registerListener :: 1600221811, Screen Orientation Sensor, 66667, 0,  
07-06 11:15:30.926 18918-18918/? I/art: System.exit called, status: 0
07-06 11:15:30.926 18918-18918/? I/AndroidRuntime: VM exiting with result code 0.
07-06 11:15:30.932 4735-4735/? D/Tile.RotationLockTile: onRotationLockStateChanged false
07-06 11:15:30.941 4584-4584/? E/wpa_supplicant: IAPP SNAP_HDR Mismatch
07-06 11:15:30.944 3194-4492/? D/WifiStateMachine: Current network is: "konferenz" , ID is: 0
07-06 11:15:30.955 3194-5676/? W/WindowManager: Attempted to remove non-existing token: android.os.Binder@6fcad9a
07-06 11:15:30.962 4735-4735/? D/Tile.RotationLockTile: onRotationLockStateChanged false
07-06 11:15:30.981 3194-5676/? D/AccessibilityManagerService: readMagniferWindowEnabledSettingLocked() magniferWindowEnabled = false/ userState.mIsMagniferWindowEnabled = false
07-06 11:15:30.981 3194-5676/? I/AccessibilityManagerService: semIsAccessibilityServiceEnabled()
07-06 11:15:30.981 3194-5676/? I/AccessibilityManagerService: accesibilityService is null
07-06 11:15:30.982 3194-3545/? D/SamsungPhoneWindowManager: updateSettings(). settings changed. doubleTapLaunchBehavior : 0. mDoubleTapLaunchBehavior : 0. mDoubleTapLaunchUser 0
07-06 11:15:30.984 3194-3194/? D/AccessibilityManagerService: checkUniversalSwitchState start:
07-06 11:15:30.984 3194-3194/? D/AccessibilityManagerService: checkUniversalSwitchState universalSwitchEnabled:false
07-06 11:15:30.984 3194-3194/? D/AccessibilityManagerService: updateInputFilter universalSwitchState:false
07-06 11:15:30.984 3194-3194/? D/AccessibilityManagerService: updateInputFilter userState.mIsUniversalSwitchEnabled:false
07-06 11:15:30.987 4735-4735/? D/AccessibilityManager: accessibility service is not enabled
07-06 11:15:30.987 4735-4735/? D/AccessibilityManager: accessibility service is not enabled
07-06 11:15:30.987 4735-4735/? D/vol.SecVolumeDialog: onAccessibilityStateChanged: misTalkbackEnabled : false
07-06 11:15:30.991 3194-4420/? D/SensorService: [SO] Reset Rotation Old [100], Init [1]
07-06 11:15:31.608 10007-10028/? W/System.err: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq (No such file or directory)
07-06 11:15:31.608 10007-10028/? W/System.err:     at java.io.FileInputStream.open(Native Method)
07-06 11:15:31.608 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:146)
07-06 11:15:31.608 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:99)
07-06 11:15:31.608 10007-10028/? W/System.err:     at java.io.FileReader.<init>(FileReader.java:58)
07-06 11:15:31.608 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:31.608 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.b(Unknown Source)
07-06 11:15:31.608 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.j(Unknown Source)
07-06 11:15:31.608 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:31.608 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.BaseManager$a.handleMessage(Unknown Source)
07-06 11:15:31.608 10007-10028/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
07-06 11:15:31.609 10007-10028/? W/System.err:     at android.os.Looper.loop(Looper.java:154)
07-06 11:15:31.609 10007-10028/? W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)
07-06 11:15:31.611 10007-10028/? W/System.err: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu7/cpufreq/scaling_cur_freq (No such file or directory)
07-06 11:15:31.612 10007-10028/? W/System.err:     at java.io.FileInputStream.open(Native Method)
07-06 11:15:31.612 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:146)
07-06 11:15:31.612 10007-10028/? W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:99)
07-06 11:15:31.612 10007-10028/? W/System.err:     at java.io.FileReader.<init>(FileReader.java:58)
07-06 11:15:31.612 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:31.612 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.b(Unknown Source)
07-06 11:15:31.612 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.j(Unknown Source)
07-06 11:15:31.612 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.b.a(Unknown Source)
07-06 11:15:31.612 10007-10028/? W/System.err:     at com.glgjing.avengers.manager.BaseManager$a.handleMessage(Unknown Source)
07-06 11:15:31.612 10007-10028/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
07-06 11:15:31.612 10007-10028/? W/System.err:     at android.os.Looper.loop(Looper.java:154)
07-06 11:15:31.612 10007-10028/? W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)
07-06 11:15:31.887 3194-3542/? I/ActivityManager: Waited long enough for: ServiceRecord{adc19a1 u0 de.amazon.mShop.android/com.amazon.venezia.notification.NotificationService}
07-06 11:15:32.286 19597-19597/? D/SecurityManagerNative: SecurityManagerNative v2.7.2.5 On 64bit PLATFORM With BORINGSSL
07-06 11:15:32.290 19597-19597/? E/appproc: Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
07-06 11:15:32.290 19597-19597/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10137 <<<<<<
07-06 11:15:32.293 19597-19597/? D/AndroidRuntime: CheckJNI is OFF
07-06 11:15:32.293 19597-19597/? D/AndroidRuntime: addProductProperty: start
07-06 11:15:32.349 19597-19597/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(38): _init: Version 1.1 Build # 3532
07-06 11:15:32.349 19597-19597/? I/[saiv 1.1]: saiv_OnLoadJNI.cpp(43): _init: _init() was called
07-06 11:15:32.426 19597-19597/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-06 11:15:32.449 19597-19597/? I/Radio-JNI: register_android_hardware_Radio DONE
07-06 11:15:32.453 19597-19597/? D/ReflectionHelper: loadKlass() : caller=android.app.Activity.<clinit>:7572 <bottom of call stack> 
07-06 11:15:32.453 19597-19597/? D/ReflectionHelper: Reflecting method.....  class <onScreenChanged>
07-06 11:15:32.455 19597-19597/? E/SemAffinityControl: SemAffinityControl: registerfunction enter
07-06 11:15:32.465 19597-19597/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
07-06 11:15:32.595 19597-19597/? I/art: System.exit called, status: 0
07-06 11:15:32.595 19597-19597/? I/AndroidRuntime: VM exiting with result code 0.

systrace generates html failed everytime on my pc win7

Outputting Systrace results...
Tracing complete, writing results
Traceback (most recent call last):
File "D:\Sdk\platform-tools\systrace\systrace.py", line 49, in
sys.exit(run_systrace.main())
File "D:\Sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 196, in main
main_impl(sys.argv)
File "D:\Sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 193, in main_impl
controller.OutputSystraceResults(write_json=options.write_json)
File "D:\Sdk\platform-tools\systrace\catapult\systrace\systrace\systrace_runner.py", line 68, in OutputSystraceResults
self._out_filename)
File "D:\Sdk\platform-tools\systrace\catapult\systrace\systrace\output_generator.py", line 98, in GenerateHTMLOutput
html_file.write(_ConvertToHtmlString(result.raw_data))
File "D:\Sdk\platform-tools\systrace\catapult\systrace\systrace\output_generator.py", line 120, in _ConvertToHtmlString
raise ValueError('Invalid trace result format for HTML output')
ValueError: Invalid trace result format for HTML output

Step 7. Can't open script run_perf_tests.py on Windows

Running %ANDROID_HOME%\tools\monkeyrunner run_perf_tests.py .\ <DeviceId> at the project's root does not work. Monkeyrunner expects scripts in the same folder where it's at and the tutorial does not mention moving the script or adding the full file path. This should be noted on the website in Step 7 so as to avoid confusion.

Incorrect text on website

There's a typo in step 2:

The Android SDK path should be set as the ANDROID_HOME environment variable. The command echo $JAVA_HOME or echo %ANDROID_HOME% should output the directory of a working Android SDK.

Should read:

The Android SDK path should be set as the ANDROID_HOME environment variable. The command echo $ANDROID_HOME or echo %ANDROID_HOME% should output the directory of a working Android SDK.

Windows - Error running systrace: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

This happens when I try to run the command given in Step 5:

python %ANDROID_HOME%/platform-tools/systrace/systrace.py --time=10 -o %userprofile%/trace.html gfx view res

Full stacktrace:

CRITICAL:root:(TimeoutThread-1-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 1 of 3: ValueError('close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr',)
CRITICAL:root:(TimeoutThread-2-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 2 of 3: ValueError('close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr',)
Traceback (most recent call last):
  File "C:\Users\jwahlmann\android-sdks/platform-tools/systrace/systrace.py", line 49, in <module>
    sys.exit(run_systrace.main())
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 194, in main
    main_impl(sys.argv)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 155, in main_impl
    devices = [a.GetDeviceSerial() for a in adb_wrapper.AdbWrapper.Devices()]
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\android\sdk\adb_wrapper.py", line 363, in Devices
    retries=retries)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\android\sdk\adb_wrapper.py", line 383, in _RawDevices
    output = cls._RunAdbCmd(cmd, timeout=timeout, retries=retries)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\android\decorators.py", line 57, in timeout_retry_wrapper
    retry_if_func=retry_if_func)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\timeout_retry.py", line 159, in Run
    error_log_func=error_log_func)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 186, in JoinAll
    self._JoinAll(watcher, timeout)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 158, in _JoinAll
    thread.ReraiseIfException()
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 81, in run
    self._ret = self._func(*self._args, **self._kwargs)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\timeout_retry.py", line 152, in <lambda>
    child_thread = reraiser_thread.ReraiserThread(lambda: func(*args, **kwargs),
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\android\decorators.py", line 47, in impl
    return f(*args, **kwargs)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\android\sdk\adb_wrapper.py", line 249, in _RunAdbCmd
    timeout_retry.CurrentTimeoutThreadGroup().GetRemainingTime())
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\cmd_helper.py", line 313, in GetCmdStatusAndOutputWithTimeout
    stderr=subprocess.STDOUT)
  File "C:\Users\jwahlmann\android-sdks\platform-tools\systrace\catapult\systrace\systrace\..\..\devil\devil\utils\cmd_helper.py", line 105, in Popen
    shell=shell, close_fds=True, env=env, preexec_fn=preexec_fn)
  File "C:\Python27\lib\subprocess.py", line 668, in __init__
    raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

Any hint on how to solve this?

NPE when running python script in step 7

That am command works fine if I execute it myself with adb shell.

151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] Error executing command: am instrument -w -r -e annotation com.google.android.perftesting.common.PerfTest -e disableAnalytics true -e listener com.google.android.perftesting.TestListener com.google.android.perftesting.test/android.support.test.runner.AndroidJUnitRunner
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]com.android.ddmlib.ShellCommandUnresponsiveException
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:503)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:381)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:352)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.ddmlib.Device.executeShellCommand(Device.java:613)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.chimpchat.adb.AdbChimpDevice.shell(AdbChimpDevice.java:274)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.chimpchat.adb.AdbChimpDevice.shell(AdbChimpDevice.java:267)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.chimpchat.adb.AdbChimpDevice.shell(AdbChimpDevice.java:262)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.chimpchat.adb.AdbChimpDevice.instrument(AdbChimpDevice.java:503)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at com.android.monkeyrunner.MonkeyDevice.instrument(MonkeyDevice.java:358)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at java.lang.reflect.Method.invoke(Method.java:497)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:186)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:204)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyObject.call(PyObject.java:422)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyObject.call(PyObject.java:426)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyMethod.call(PyMethod.java:139)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.pycode.pyx0.performTest$1(/Users/Michael/Code/android-perf-testing/./run_perf_tests.py:67)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.pycode.pyx0.call_function(/Users/Michael/Code/android-perf-testing/./run_perf_tests.py)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyTableCode.call(PyTableCode.java:165)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyFunction.function___call
(PyFunction.java:376)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyFunction.call(PyFunction.java:371)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyFunction.call(PyFunction.java:366)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyObject.callextra(PyObject.java:527)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at threading$py.run$32(/Users/Michael/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py:170)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at threading$py.call_function(/Users/Michael/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyTableCode.call(PyTableCode.java:165)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyFunction.call(PyFunction.java:317)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyMethod.call(PyMethod.java:109)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at threading$py.Thread__bootstrap$33(/Users/Michael/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py:223)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at threading$py.call_function(/Users/Michael/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyTableCode.call(PyTableCode.java:165)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyFunction.call(PyFunction.java:387)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyMethod.instancemethod___call
(PyMethod.java:220)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyMethod.call(PyMethod.java:211)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyMethod.call(PyMethod.java:201)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.PyMethod.call(PyMethod.java:196)
151030 15:59:19.764:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] at org.python.core.FunctionThread.run(FunctionThread.java:25)
Exception in thread TestThread:Traceback (most recent call last):
File "/Users/Michael/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py", line 179, in _Thread__bootstrap
self.run()
File "/Users/Michael/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py", line 170, in run
self._target(_self._args, *_self._kwargs)
File "/Users/Michael/Code/android-perf-testing/./run_perf_tests.py", line 66, in performTest
print device.instrument(testRunner, params)['stream']
NullPointerException: java.lang.NullPointerException

Path to monkeyrunner is incorrect

Hello,
your codelab states:

${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./ <INSERT_ID>

However, that is incorrect, as the monkeyrunner executable is located in ${ANDROID_HOME}/tools/bin/monkeyrunner

Step 5. systrace.py not working on Windows

Executing systrace.py on Windows 7 produces the following exception:
Traceback (most recent call last):
File "systrace-legacy.py", line 251, in main()
File "systrace-legacy.py", line 157, in main
ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, adb.stderr]
)
select.error: (10093, 'Either the application has not called WSAStartup, or WSAS
tartup failed')

Is there any way to execute the script systrace.py on Windows from command line?

run_perf_tests.py ShellCommandUnresponsiveException

when building/running the tests through the command line, a lot of times i'm getting this ShellCommandUnresponsiveException. It doesn't happen all the time, but most of the times.

However if I run the tests independently it runs fine:
macbook-pro:android-perf-testing ricardobelchior$ adb shell am instrument -w -r -e annotation com.google.android.perftesting.common.PerfTest -e listener com.google.android.perftesting.TestListener -e disableAnalytics true com.google.android.perftesting.test/android.support.test.runner.AndroidJUnitRunner

In my project i also uncommented MainActivityTest and wrote a similar test for the RecyclerViewActivity.
Do you guys know if its some 'timeout' value i should increase or something else ?

macbook-pro:android-perf-testing ricardobelchior$ ./gradlew :app:assembleDebug :app:assembleDebugAndroidTest :app:installDebug :app:installDebugAndroidTest

macbook-pro:android-perf-testing ricardobelchior$ ${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./ 192.168.56.101:5555
Writing logs to: ./
Using device_id: 192.168.56.101:5555
Your ANDROID_HOME is set to: /Users/ricardobelchior/Library/Android/sdk
Cleaning data files
Waiting for a device to be connected.
Device connected.
Starting dump permission grant
Starting storage permission grant
Clearing gfxinfo on device
Executing systrace
Starting test
Done systrace logging
Systrace Thread Done
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice] Error executing command: am instrument -w -r -e annotation com.google.android.perftesting.common.PerfTest -e listener com.google.android.perftesting.TestListener -e disableAnalytics true com.google.android.perftesting.test/android.support.test.runner.AndroidJUnitRunner
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]com.android.ddmlib.ShellCommandUnresponsiveException
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:503)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:381)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:352)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.ddmlib.Device.executeShellCommand(Device.java:613)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.chimpchat.adb.AdbChimpDevice.shell(AdbChimpDevice.java:274)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.chimpchat.adb.AdbChimpDevice.shell(AdbChimpDevice.java:267)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.chimpchat.adb.AdbChimpDevice.shell(AdbChimpDevice.java:262)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.chimpchat.adb.AdbChimpDevice.instrument(AdbChimpDevice.java:503)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at com.android.monkeyrunner.MonkeyDevice.instrument(MonkeyDevice.java:358)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at java.lang.reflect.Method.invoke(Method.java:606)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyObject.__call__(PyObject.java:422)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyObject.__call__(PyObject.java:426)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyMethod.__call__(PyMethod.java:139)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.pycode._pyx0.perform_test$1(/Users/ricardobelchior/workspace/android-perf-testing/./run_perf_tests.py:52)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.pycode._pyx0.call_function(/Users/ricardobelchior/workspace/android-perf-testing/./run_perf_tests.py)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyTableCode.call(PyTableCode.java:165)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyFunction.function___call__(PyFunction.java:376)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyFunction.__call__(PyFunction.java:371)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyFunction.__call__(PyFunction.java:366)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyObject._callextra(PyObject.java:527)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at threading$py.run$32(/Users/ricardobelchior/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py:170)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at threading$py.call_function(/Users/ricardobelchior/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyTableCode.call(PyTableCode.java:165)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyFunction.__call__(PyFunction.java:317)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyMethod.__call__(PyMethod.java:109)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at threading$py._Thread__bootstrap$33(/Users/ricardobelchior/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py:223)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at threading$py.call_function(/Users/ricardobelchior/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyTableCode.call(PyTableCode.java:165)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyFunction.__call__(PyFunction.java:387)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:220)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyMethod.__call__(PyMethod.java:211)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyMethod.__call__(PyMethod.java:201)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.PyMethod.__call__(PyMethod.java:196)
160615 11:18:48.247:S [TestThread] [com.android.chimpchat.adb.AdbChimpDevice]   at org.python.core.FunctionThread.run(FunctionThread.java:25)
Exception in thread TestThread:Traceback (most recent call last):
  File "/Users/ricardobelchior/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py", line 179, in _Thread__bootstrap
    self.run()
  File "/Users/ricardobelchior/Library/Android/sdk/tools/lib/jython-standalone-2.5.3.jar/Lib/threading.py", line 170, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/ricardobelchior/workspace/android-perf-testing/./run_perf_tests.py", line 51, in perform_test
    print device.instrument(test_runner, params)['stream']
NullPointerException: java.lang.NullPointerException
Test Thread Done
Time between test and trace thread completion: 9
Starting adb pull for test files
Starting adb pull for test files

FAIL: Could not find file indicating the test run completed. Check that the TestListener is writing files to external storage

OVERALL: FAILED. See above for more information.

systrace not working

C:\Users\user\Downloads>python %ANDROID_HOME%/platform-tools/systrace/systrace.p
y --time=10 -o %userprofile%/trace.html gfx view res
Starting tracing (10 seconds)
Tracing completed. Collecting output...
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Android\sdk/platform-tools/systrace/systrace
.py", line 49, in
sys.exit(run_systrace.main())
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\run_systrace.py", line 196, in main
main_impl(sys.argv)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\run_systrace.py", line 191, in main_impl
controller.StopTracing()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\systrace_runner.py", line 48, in StopTracing
self._tracing_controller.StopTracing()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_controller.py", line 183, in StopTracing
self._IssueClockSyncMarker()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_controller.py", line 239, in _IssueClockSyncMarker
agent.RecordClockSyncMarker(sync_id, ControllerAgentClockSync)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_agents\atrace_agent.py", line 229, in RecordClockSync
Marker
shell.RunCommand(cmd, close=True)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 213, in R
unCommand
return (result[:-1], int(result[-1]))
ValueError: invalid literal for int() with base 10: ''

Windows 8
Also there was also an import error on pywin. I resolved it with
pip install pywin32

pip was a problem too. It was not working,
So I solved that problem by setting path C:\Python27\Scripts into Environment Variables

bug: Not able to find "testdata" directory

After step 8 I don't see any files in the testdata directory and get the following error in one of the logs:

"adb: error: remote object '/storage/emulated/0/Android/data/com.google.android.perftesting/files/testdata' does not exist"

File name typo in TestListener

In the class TestListener, the battery status log file has a typo in the name.

It is shown as "batterstats.dumpsys.log"

but should be "batterystats.dumpsys.log"

Questions on run-perf-tests.py: Step5 & Step8

Hi,
Just need few queries in run-perf-tests.py.

Step5: Enable and clear graphics info dumpsys
reset_graphics_dumpsys(device, package_name)
what is the device here ?

Step8: Download files from device
Is it the dumpsys logs? So once we run the systrace the logs will be dumped in the device? If yes where in the device I can find it ? Is it "/storage/emulated/0/Android/data/" OR "/storage/emulated/legacy/Android/data/"

Thanks,
Amit

Android Systrace tool throwing errors

python C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\systrace.py --time=5 -o mynewtrace.html gfx

Starting tracing (5 seconds)
Tracing completed. Collecting output...
Traceback (most recent call last):
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\systrace.py", line 49, in
sys.exit(run_systrace.main())
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 196, in main
main_impl(sys.argv)
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 191, in main_impl
controller.StopTracing()
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace\systrace_runner.py", line 48, in StopTracing
self._tracing_controller.StopTracing()
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace\tracing_controller.py", line 183, in StopTracing
self._IssueClockSyncMarker()
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace\tracing_controller.py", line 239, in _IssueClockSyncMarker
agent.RecordClockSyncMarker(sync_id, ControllerAgentClockSync)
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace\tracing_agents\atrace_agent.py", line 229, in RecordClockSyncMarker
shell.RunCommand(cmd, close=True)
File "C:\Users\username\AppData\Local\Android\Sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 213, in RunCommand
return (result[:-1], int(result[-1]))
ValueError: invalid literal for int() with base 10: ''

C:\Users\username>python systrace.py --time=5 -o mynewtrace.html gfx
python: can't open file 'systrace.py': [Errno 2] No such file or directory

TestListener is not executing EnablePostTestDumpsys

Executing the monkey runner script does not produce any gfx dumpsys file at all.

screen shot 2018-05-25 at 15 50 21

The tests that produce an output file are : battery, getprops and location.
All of their associated classes EnableDeviceGetPropsInfo, EnableBatteryStatsDump are being called from TestListener class with the exception of the location request info dump which is called directly from the GoogleLocationManagerService by TestListener.dumpLocationRequestInformation

gfxinfo output should be generated from class EnablePostTestDumpsys which is never used.

Are we suppose to use this class and call before and after in the TestListener?

EnablePostTestDumpsys rule not working

I have completed the codelab and everything is fine except from the EnablePostTestDumpsys rule. Every time it gets executed the output is a blank file. I have tried with different phones (Nexus 5X, Samsung S7...) using Android N and HTC using Marshmallow but I haven't been able to get anything different.

Running the command line is fine (adb shell dumpsys gfxinfo com.google.android.perftesting framestat) but it doesn't work when running the LocalPerfTests tasks.

However if I use an emulator everything works fine and I get some data.

Any ideas?

Tests not executed using monkeyrunner

Hi there,
I am running into an issue while running the step "Automating Systrace with MonkeyRunner". Build is successful in step ./gradlew :app:assembleDebug :app:assembleDebugAndroidTest :app:installDebug :app:installDebugAndroidTest but the ${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./ 007886d5600d492f returns

Writing logs to: ./
Using device_id: 007886d5600d492f
Your ANDROID_HOME is set to: /Users/agupt13/Library/Android/sdk
Cleaning data files
Waiting for a device to be connected.
Device connected.
Starting dump permission grant
Starting storage permission grant
Clearing gfxinfo on device
Starting test
Executing systrace
Done systrace logging
Systrace Thread Done


Time: 0

OK (0 tests)
Done running tests
Test Thread Done
Time between test and trace thread completion: 1
Starting adb pull for test files
Starting adb pull for test files

FAIL: Could not find file indicating the test run completed. Check that the TestListener is writing files to external storage

OVERALL: FAILED. See above for more information.

I also don't see the file trace.html generated under perfTesting\<DeviceId>\testData folder .

I also see following error in adb logcat

I/TestRunner(31943): run finished: 0 tests, 0 failed, 0 ignored
I/MonitoringInstrumentation(31943): waitForActivitiesToComplete() took: 0ms
I/MonitoringInstrumentation(31943): Activities that are still in CREATED to STOPPED: 0
D/AndroidRuntime(31926): Shutting down VM
D/jdwp    (31926): Got wake-up signal, bailing out of select
D/dalvikvm(31926): Debugger has detached; object registry had 1 entries
I/ActivityManager(  632): Force stopping com.google.android.perftesting appid=10100 user=0: finished inst
I/ActivityManager(  632): Killing 31943:com.google.android.perftesting/u0a100 (adj 0): stop com.google.android.perftesting
D/MonkeyStub(31817): Quit requested
I/AndroidRuntime(31817): VM exiting with result code 0.
F/AccountManagerService(  632): Account Manager Crash
F/AccountManagerService(  632): java.lang.IllegalArgumentException: no such account
F/AccountManagerService(  632):         at com.android.server.accounts.AccountManagerService.getAuthToken(AccountManagerService.java:1300)

Do I need any kind of authentication for running this codelab?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.