summaryrefslogtreecommitdiff
path: root/libs/hwui/ProfileData.cpp
diff options
context:
space:
mode:
authorStan Iliev <stani@google.com>2019-08-16 13:43:08 -0400
committerStan Iliev <stani@google.com>2020-01-10 10:50:25 -0500
commit637ba5e8da729fda86ba6c1785947e1476610f8e (patch)
tree7e1401a361ce05619f9c10fd6c6a0fcc0c97fc74 /libs/hwui/ProfileData.cpp
parentf2be9da2fcb0e4a2daf89f6c6f189096484b6a7c (diff)
Expose HWUI metrics via statsd
Add atom definition for HWUI stats. Implement a C++ statsd puller inside GraphicsStatsService service. GraphicsStatsService has new private API, which returns a serialized proto with HWUI stats grouped by application package and version. Test: Ran "adb shell cmd stats pull-source 10068" Test: Ran "statsd_testdrive 10068" and it looks OK Bug: 142665516 Change-Id: I400c0dbf9e25181d36f9018688b03d86839ac3de
Diffstat (limited to 'libs/hwui/ProfileData.cpp')
-rw-r--r--libs/hwui/ProfileData.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/ProfileData.cpp b/libs/hwui/ProfileData.cpp
index 7921662b213c..a8e36e37905d 100644
--- a/libs/hwui/ProfileData.cpp
+++ b/libs/hwui/ProfileData.cpp
@@ -15,6 +15,7 @@
*/
#include "ProfileData.h"
+#include "Properties.h"
#include <cinttypes>
@@ -102,6 +103,7 @@ void ProfileData::mergeWith(const ProfileData& other) {
mGPUFrameCounts[i] >>= divider;
mGPUFrameCounts[i] += other.mGPUFrameCounts[i];
}
+ mPipelineType = other.mPipelineType;
}
void ProfileData::dump(int fd) const {
@@ -157,6 +159,7 @@ void ProfileData::reset() {
mTotalFrameCount = 0;
mJankFrameCount = 0;
mStatStartTime = systemTime(SYSTEM_TIME_MONOTONIC);
+ mPipelineType = Properties::getRenderPipelineType();
}
void ProfileData::reportFrame(int64_t duration) {