Skip to content

Instantly share code, notes, and snippets.

@carstenhag
Last active March 15, 2021 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carstenhag/c191cae6988577750e8743b8c5fb2595 to your computer and use it in GitHub Desktop.
Save carstenhag/c191cae6988577750e8743b8c5fb2595 to your computer and use it in GitHub Desktop.
Profiling/Benchmarking scenarios to get started with the grade-profiler tool. See article at https://www.maibornwolff.de/en/blog/benchmarking-android-java-kotlin-builds-gradle-profiler
incremental_resource_change {
tasks = ["assembleBrandRedEnvIntegrationDebug"]
warm-ups: 1
iterations: 3
apply-android-resource-change-to = ["app/src/main/res/values/strings.xml"]
}
incremental_layout_change {
tasks = ["assembleBrandRedEnvIntegrationDebug"]
warm-ups: 1
iterations: 3
apply-android-layout-change-to = ["app/src/main/res/layout/activity_charging.xml"]
}
incremental_code_change {
tasks = ["assembleBrandRedEnvIntegrationDebug"]
warm-ups: 1
iterations: 3
apply-abi-change-to = ["app/src/main/java/de/maibornwolff/sample/App.kt"]
apply-cpp-change-to = ["app/src/cpp/library.cpp"]
}
clean_build_default {
tasks = ["assembleBrandRedEnvIntegrationDebug"]
warm-ups: 1
iterations: 3
cleanup-tasks = ["clean"]
}
clean_build_4gb_ram {
tasks = ["assembleBrandRedEnvIntegrationDebug"]
warm-ups: 1
iterations: 3
cleanup-tasks = ["clean"]
jvm-args = ["-Xmx4g", "-XX:MaxMetaspaceSize=512m"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment