diff options
author | Yi Kong <yikong@google.com> | 2020-11-11 14:33:35 +0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2020-11-11 14:37:53 +0800 |
commit | 8b3a39f088f2793f7f2b6449b20db0618d80795f (patch) | |
tree | b13cf2a34cfecb1cdc1f743c557d7604a29d0763 | |
parent | 7bd2a5e4fd2eec296d1fe61aed5a5ff655b75855 (diff) |
profcollect: Use DeviceConfig to control trace parameters
Test: presubmit
Bug: 79161490
Change-Id: I80dd9fda6dc095cec61cffd2389f28992c6973d1
-rw-r--r-- | services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java index 19449654f2ec..0d878b401bee 100644 --- a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +++ b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java @@ -28,7 +28,6 @@ import android.os.IBinder.DeathRecipient; import android.os.Looper; import android.os.RemoteException; import android.os.ServiceManager; -import android.os.SystemProperties; import android.os.UpdateEngine; import android.os.UpdateEngineCallback; import android.provider.DeviceConfig; @@ -227,8 +226,8 @@ public final class ProfcollectForwardingService extends SystemService { } // Sample for a fraction of app launches. - int traceFrequency = - SystemProperties.getInt("persist.profcollectd.applaunch_trace_freq", 2); + int traceFrequency = DeviceConfig.getInt(DeviceConfig.NAMESPACE_PROFCOLLECT_NATIVE_BOOT, + "applaunch_trace_freq", 2); int randomNum = ThreadLocalRandom.current().nextInt(100); if (randomNum < traceFrequency) { try { |