perf(profile): generate baseline and startup profiles

Add a reproducible generator for startup, search, article opening and scrolling, search history, the settings and About screens and their dialogs. Replace the hand-written profile with generated release profiles.
This commit is contained in:
OneWay committed 2026-10-28 00:14:17 +08:00
1 parent 85ee7d703b
commit 938d920725
9 files changed
+20791 -64

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
plugins {
alias(libs.plugins.android.test)
alias(libs.plugins.baselineprofile)
}
android {
namespace = "com.example.research.baselineprofile"
compileSdk = project.property("compileSdk").toString().toInt()
targetProjectPath = ":app"
defaultConfig {
minSdk = project.property("minSdk").toString().toInt()
targetSdk = project.property("targetSdk").toString().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
}
kotlin {
jvmToolchain(21)
}
dependencies {
implementation(libs.androidx.test.junit)
implementation(libs.androidx.uiautomator)
implementation(libs.androidx.benchmark.macro.junit4)
}