mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-02-05 03:08:31 -06:00
Generate baseline profile for free and pro app (#1136)
This commit is contained in:
committed by
GitHub
parent
76056c9d7a
commit
f39c37c59f
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
15502
app/src/proRelease/generated/baselineProfiles/baseline-prof.txt
Normal file
15502
app/src/proRelease/generated/baselineProfiles/baseline-prof.txt
Normal file
File diff suppressed because it is too large
Load Diff
15502
app/src/proRelease/generated/baselineProfiles/startup-prof.txt
Normal file
15502
app/src/proRelease/generated/baselineProfiles/startup-prof.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -51,9 +51,10 @@ android {
|
||||
// You can specify to run the generators on a managed devices or connected devices.
|
||||
baselineProfile {
|
||||
// This specifies the managed devices to use that you run the tests on.
|
||||
// managedDevices.clear()
|
||||
// managedDevices += "pixel6Api34"
|
||||
useConnectedDevices = true
|
||||
managedDevices.clear()
|
||||
managedDevices += "pixel6Api34"
|
||||
useConnectedDevices = false
|
||||
// mergeIntoMain = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -42,7 +42,8 @@ class BaselineProfileGenerator {
|
||||
fun generate() {
|
||||
// The application id for the running build variant is read from the instrumentation arguments.
|
||||
rule.collect(
|
||||
packageName = "com.yogeshpaliyal.keypass",
|
||||
packageName = InstrumentationRegistry.getArguments().getString("targetAppId")
|
||||
?: throw Exception("targetAppId not passed as instrumentation runner arg"),
|
||||
|
||||
// See: https://d.android.com/topic/performance/baselineprofiles/dex-layout-optimizations
|
||||
includeInStartupProfile = true
|
||||
|
||||
Reference in New Issue
Block a user