profcollectd: Rename config env to persist.* am: b6bb23ce27 am: 790ac8d3b2

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425269

Change-Id: I145026fa72d179827311531924d18857bb6aec2d
This commit is contained in:
Yi Kong
2020-09-11 02:21:50 +00:00
committed by Automerger Merge Worker

View File

@@ -150,7 +150,8 @@ public final class ProfcollectForwardingService extends SystemService {
}
// Sample for a fraction of app launches.
int traceFrequency = SystemProperties.getInt("profcollectd.applaunch_trace_freq", 2);
int traceFrequency =
SystemProperties.getInt("persist.profcollectd.applaunch_trace_freq", 2);
int randomNum = ThreadLocalRandom.current().nextInt(100);
if (randomNum < traceFrequency) {
try {