summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastMixerDumpState.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-02 14:15:47 -0800
committerGlenn Kasten <gkasten@google.com>2015-03-02 14:17:05 -0800
commit214b406c813e5baca3e4b5cdc1d986de35f09bbb (patch)
tree9e39728f873648da62d84e101b8dfcb25c58f4f7 /services/audioflinger/FastMixerDumpState.cpp
parentbf31b3301676ad86151f632e9ca186fd02445d86 (diff)
downloadframeworks_av-214b406c813e5baca3e4b5cdc1d986de35f09bbb.zip
frameworks_av-214b406c813e5baca3e4b5cdc1d986de35f09bbb.tar.gz
frameworks_av-214b406c813e5baca3e4b5cdc1d986de35f09bbb.tar.bz2
Rename FAST_MIXER_STATISTICS to FAST_THREAD_STATISTICS
Change-Id: Idb5f5bf0c20bffff8536cf4a46f696e12e99e81b
Diffstat (limited to 'services/audioflinger/FastMixerDumpState.cpp')
-rw-r--r--services/audioflinger/FastMixerDumpState.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/services/audioflinger/FastMixerDumpState.cpp b/services/audioflinger/FastMixerDumpState.cpp
index 0ddd908..148c0f7 100644
--- a/services/audioflinger/FastMixerDumpState.cpp
+++ b/services/audioflinger/FastMixerDumpState.cpp
@@ -18,7 +18,7 @@
//#define LOG_NDEBUG 0
#include "Configuration.h"
-#ifdef FAST_MIXER_STATISTICS
+#ifdef FAST_THREAD_STATISTICS
#include <cpustats/CentralTendencyStatistics.h>
#ifdef CPU_FREQUENCY_STATISTICS
#include <cpustats/ThreadCpuUsage.h>
@@ -31,7 +31,7 @@
namespace android {
FastMixerDumpState::FastMixerDumpState(
-#ifdef FAST_MIXER_STATISTICS
+#ifdef FAST_THREAD_STATISTICS
uint32_t samplingN
#endif
) : FastThreadDumpState(),
@@ -40,12 +40,12 @@ FastMixerDumpState::FastMixerDumpState(
mSampleRate(0), mFrameCount(0),
mTrackMask(0)
{
-#ifdef FAST_MIXER_STATISTICS
+#ifdef FAST_THREAD_STATISTICS
increaseSamplingN(samplingN);
#endif
}
-#ifdef FAST_MIXER_STATISTICS
+#ifdef FAST_THREAD_STATISTICS
void FastMixerDumpState::increaseSamplingN(uint32_t samplingN)
{
if (samplingN <= mSamplingN || samplingN > kSamplingN || roundup(samplingN) != samplingN) {
@@ -126,7 +126,7 @@ void FastMixerDumpState::dump(int fd) const
mNumTracks, mWriteErrors, mUnderruns, mOverruns,
mSampleRate, mFrameCount, measuredWarmupMs, mWarmupCycles,
mixPeriodSec * 1e3);
-#ifdef FAST_MIXER_STATISTICS
+#ifdef FAST_THREAD_STATISTICS
// find the interval of valid samples
uint32_t bounds = mBounds;
uint32_t newestOpen = bounds & 0xFFFF;