summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastThreadDumpState.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-02-17 16:22:04 -0800
committerGlenn Kasten <gkasten@google.com>2015-02-17 17:19:17 -0800
commit045ee7ea3e42b8657869d81c917feed5fb0c2b4a (patch)
treeaee4e457c5ae65d9135f5008fa239e295162fb2d /services/audioflinger/FastThreadDumpState.cpp
parentea78b1497eef36b6a3ba783be20615989e87ed08 (diff)
downloadframeworks_av-045ee7ea3e42b8657869d81c917feed5fb0c2b4a.zip
frameworks_av-045ee7ea3e42b8657869d81c917feed5fb0c2b4a.tar.gz
frameworks_av-045ee7ea3e42b8657869d81c917feed5fb0c2b4a.tar.bz2
Pull out FastThreadDumpState
Change-Id: Ic99890bbba4f856b65535f3df0f928de9e3e9748
Diffstat (limited to 'services/audioflinger/FastThreadDumpState.cpp')
-rw-r--r--services/audioflinger/FastThreadDumpState.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/services/audioflinger/FastThreadDumpState.cpp b/services/audioflinger/FastThreadDumpState.cpp
new file mode 100644
index 0000000..d7b825d
--- /dev/null
+++ b/services/audioflinger/FastThreadDumpState.cpp
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "FastThreadDumpState.h"
+
+namespace android {
+
+FastThreadDumpState::FastThreadDumpState() :
+ mCommand(FastThreadState::INITIAL), mUnderruns(0), mOverruns(0),
+ /* mMeasuredWarmupTs({0, 0}), */
+ mWarmupCycles(0)
+#ifdef FAST_MIXER_STATISTICS
+ , mSamplingN(1), mBounds(0)
+#endif
+{
+ mMeasuredWarmupTs.tv_sec = 0;
+ mMeasuredWarmupTs.tv_nsec = 0;
+}
+
+FastThreadDumpState::~FastThreadDumpState()
+{
+}
+
+} // android