summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/SamplingProfilerService.java
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-12-02 15:30:23 -0800
committerBrad Fitzpatrick <bradfitz@android.com>2010-12-02 15:30:23 -0800
commitd7ad0d28372bba03a3b6c5d01e0e7b0066e51374 (patch)
treeed22d3af1b52eb63366610ee8ab5b55be8a25b01 /services/java/com/android/server/SamplingProfilerService.java
parente6744db78e1d742516143ca3973b18a93629dbe2 (diff)
downloadframeworks_base-d7ad0d28372bba03a3b6c5d01e0e7b0066e51374.zip
frameworks_base-d7ad0d28372bba03a3b6c5d01e0e7b0066e51374.tar.gz
frameworks_base-d7ad0d28372bba03a3b6c5d01e0e7b0066e51374.tar.bz2
sampling profiler hz -> ms
Goes along with def41ec2e8 / Ifcfc343 Change-Id: Ia5cc90e6f8d83dcdf40802859002507980310d06
Diffstat (limited to 'services/java/com/android/server/SamplingProfilerService.java')
-rw-r--r--services/java/com/android/server/SamplingProfilerService.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/services/java/com/android/server/SamplingProfilerService.java b/services/java/com/android/server/SamplingProfilerService.java
index 26af7f7..61267d0 100644
--- a/services/java/com/android/server/SamplingProfilerService.java
+++ b/services/java/com/android/server/SamplingProfilerService.java
@@ -88,7 +88,7 @@ public class SamplingProfilerService extends Binder {
private void registerSettingObserver(Context context) {
ContentResolver contentResolver = context.getContentResolver();
contentResolver.registerContentObserver(
- Settings.Secure.getUriFor(Settings.Secure.SAMPLING_PROFILER_HZ),
+ Settings.Secure.getUriFor(Settings.Secure.SAMPLING_PROFILER_MS),
false, new SamplingProfilerSettingsObserver(contentResolver));
}
@@ -107,12 +107,11 @@ public class SamplingProfilerService extends Binder {
}
@Override
public void onChange(boolean selfChange) {
- Integer samplingProfilerHz = Settings.Secure.getInt(
- mContentResolver, Settings.Secure.SAMPLING_PROFILER_HZ, 0);
+ Integer samplingProfilerMs = Settings.Secure.getInt(
+ mContentResolver, Settings.Secure.SAMPLING_PROFILER_MS, 0);
// setting this secure property will start or stop sampling profiler,
- // as well as adjust the frequency of taking snapshots.
- SystemProperties.set("persist.sys.profiler_hz", samplingProfilerHz.toString());
+ // as well as adjust the the time between taking snapshots.
+ SystemProperties.set("persist.sys.profiler_ms", samplingProfilerMs.toString());
}
}
}
-