Skip to content

Instantly share code, notes, and snippets.

View williamyyu's full-sized avatar
a cup of coffee a day, keeps the bugs away

William Yu williamyyu

a cup of coffee a day, keeps the bugs away
View GitHub Profile
@williamyyu
williamyyu / VM Options
Last active May 15, 2022 21:17
Android Studio VM Options
# custom Android Studio VM options, see https://developer.android.com/studio/intro/studio-config.html
# Initial stack memory size, affects idea start speed
-Xms4G
# Maximum heap memory size that Android Studio can use, reduces the garbage collection frequency.
-Xmx8G
# Initial Permanent generation
-XX:PermSize=2048M
@williamyyu
williamyyu / android: Show android task stack
Created June 28, 2019 01:32
Showing Android task stack
- adb shell dumpsys activity | grep -i run
- adb shell dumpsys activity activities | grep -i run
@williamyyu
williamyyu / android: Loggin Dependency Trees
Last active June 28, 2019 01:30
Logging Dependency Trees
// put in project/build.gradle
subprojects {
task allDeps(type: DependencyReportTask) {}
}