сряда, декември 13, 2017

Cleanup disk space consumed by Docker

See the space used by Docker images, containers and volumes:
docker system df

Cleanup space used by containers:
docker system prune

Cleanup space used by volumes
docker volume prune
Total clean with force flag:
docker system prune -af

неделя, юли 16, 2017

Debug trace files location on Nexus 5X with Android 7+

After some cursing, because nowhere in Google I could find where these trace files are stored, I finally found them. The location is not mentioned and not even hinted in the 'trace use' documentation.
/sdcard/Android/data/com.company.mygame/files/filename.trace
If we use the os.Debug class to generate trace files and our app package is com.company.mygame:
Debug.startMethodTracing("mytracefile");
Debug.stopMethodTracing();
The file can be found and pulled like:
adb pull /sdcard/Android/data/com.company.mygame/files/mytracefile.trace
ALSO, USING traceview FROM THE COMMAND LINE HAS BEEN DEPRECATED!

вторник, март 04, 2014

Interesting ADB commands

1. Show all events happening in the phone, very useful to debug transitions between activities, background, Home button, launcher icon start, notification icon start, etc.
adb logcat -b events
2. Show current tasks and activities
adb shell dumpsys activity