profcollectd: Rename config env to persist.* am: b6bb23ce27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425269 Change-Id: Ie9c3618c163c3c5968bf560afab8acbae47d866f
This commit is contained in:
@@ -150,7 +150,8 @@ public final class ProfcollectForwardingService extends SystemService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sample for a fraction of app launches.
|
// 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);
|
int randomNum = ThreadLocalRandom.current().nextInt(100);
|
||||||
if (randomNum < traceFrequency) {
|
if (randomNum < traceFrequency) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user