summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfo.cpp
diff options
context:
space:
mode:
author Stan Iliev <stani@google.com> 2019-07-25 13:12:02 -0400
committer Stan Iliev <stani@google.com> 2019-08-01 18:53:21 +0000
commit7203e1f55a57bf809c3d07a391b82c364fb60b7e (patch)
tree7471929e5b6ed42cb150bbbb9883e64a5e570007 /libs/hwui/FrameInfo.cpp
parent85a6a5aa3b56749f2f30c442eff8837efb9ebde1 (diff)
Add GPU draw stats to gfxinfo and GraphicsStatsService
Test: ran dumpsys with gfxinfo and graphicsstats Change-Id: Id9950de87dc4343c6878baa6a6dd42fbc8aeddef
Diffstat (limited to 'libs/hwui/FrameInfo.cpp')
-rw-r--r--libs/hwui/FrameInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/FrameInfo.cpp b/libs/hwui/FrameInfo.cpp
index 71cc9a81a09f..0698775b0021 100644
--- a/libs/hwui/FrameInfo.cpp
+++ b/libs/hwui/FrameInfo.cpp
@@ -37,13 +37,14 @@ const std::string FrameInfoNames[] = {
"FrameCompleted",
"DequeueBufferDuration",
"QueueBufferDuration",
+ "GpuCompleted",
};
static_assert((sizeof(FrameInfoNames) / sizeof(FrameInfoNames[0])) ==
static_cast<int>(FrameInfoIndex::NumIndexes),
"size mismatch: FrameInfoNames doesn't match the enum!");
-static_assert(static_cast<int>(FrameInfoIndex::NumIndexes) == 16,
+static_assert(static_cast<int>(FrameInfoIndex::NumIndexes) == 17,
"Must update value in FrameMetrics.java#FRAME_STATS_COUNT (and here)");
void FrameInfo::importUiThreadInfo(int64_t* info) {