summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastMixer.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-05-31 07:43:43 -0700
committerGlenn Kasten <gkasten@google.com>2012-06-03 14:49:11 -0700
commit1295bb4dcff7b29c75cd23746816df12a871d72c (patch)
tree81cf673d36c8aaf3d9d51a9f372a8425ee5fa49b /services/audioflinger/FastMixer.h
parentbf0d21fb1310e8677caa53b90e8c3aecebc7fc13 (diff)
downloadframeworks_av-1295bb4dcff7b29c75cd23746816df12a871d72c.zip
frameworks_av-1295bb4dcff7b29c75cd23746816df12a871d72c.tar.gz
frameworks_av-1295bb4dcff7b29c75cd23746816df12a871d72c.tar.bz2
Fast track dumpsys
Bug: 6591648 Change-Id: I696f51c682e7233ba690d97da26012084989b412
Diffstat (limited to 'services/audioflinger/FastMixer.h')
-rw-r--r--services/audioflinger/FastMixer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/audioflinger/FastMixer.h b/services/audioflinger/FastMixer.h
index e95abf6..06e76d5 100644
--- a/services/audioflinger/FastMixer.h
+++ b/services/audioflinger/FastMixer.h
@@ -72,9 +72,10 @@ private:
// Represents the dump state of a fast track
struct FastTrackDump {
- FastTrackDump() { }
+ FastTrackDump() : mFramesReady(0) { }
/*virtual*/ ~FastTrackDump() { }
FastTrackUnderruns mUnderruns;
+ size_t mFramesReady; // most recent value only; no long-term statistics kept
};
// The FastMixerDumpState keeps a cache of FastMixer statistics that can be logged by dumpsys.
@@ -100,6 +101,7 @@ struct FastMixerDumpState {
size_t mFrameCount;
struct timespec mMeasuredWarmupTs; // measured warmup time
uint32_t mWarmupCycles; // number of loop cycles required to warmup
+ uint32_t mTrackMask; // mask of active tracks
FastTrackDump mTracks[FastMixerState::kMaxFastTracks];
#ifdef FAST_MIXER_STATISTICS