summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alberto Gonzalez <albgonz@google.com> 2022-12-12 13:16:22 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-12-12 13:16:22 +0000
commit1390c61c95cdb91d379472e140a7de45b97c9a12 (patch)
tree7faf2958f1244512a5cdc8083e17a3d5b5e3d777
parentf8849f8572c3529a44b36688025d15140053325f (diff)
parentb170a45bd93db2c0100cf1ffea41204d9bf82b81 (diff)
Merge "Pull present_to_present_delta."
-rw-r--r--services/core/jni/stats/SurfaceFlingerPuller.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/services/core/jni/stats/SurfaceFlingerPuller.cpp b/services/core/jni/stats/SurfaceFlingerPuller.cpp
index 88736732a61c..b959798d0969 100644
--- a/services/core/jni/stats/SurfaceFlingerPuller.cpp
+++ b/services/core/jni/stats/SurfaceFlingerPuller.cpp
@@ -122,9 +122,12 @@ AStatsManager_PullAtomCallbackReturn SurfaceFlingerPuller::parseLayerInfoPull(
for (const auto& atom : atomList.atom()) {
// The strings must outlive the BytesFields, which only have a pointer to the data.
std::string present2PresentStr, post2presentStr, acquire2PresentStr, latch2PresentStr,
- desired2PresentStr, post2AcquireStr, frameRateVoteStr, appDeadlineMissesStr;
+ desired2PresentStr, post2AcquireStr, frameRateVoteStr, appDeadlineMissesStr,
+ present2PresentDeltaStr;
optional<BytesField> present2Present =
getBytes(atom.present_to_present(), present2PresentStr);
+ optional<BytesField> present2PresentDelta =
+ getBytes(atom.present_to_present_delta(), present2PresentDeltaStr);
optional<BytesField> post2present = getBytes(atom.post_to_present(), post2presentStr);
optional<BytesField> acquire2Present =
getBytes(atom.acquire_to_present(), acquire2PresentStr);
@@ -138,7 +141,8 @@ AStatsManager_PullAtomCallbackReturn SurfaceFlingerPuller::parseLayerInfoPull(
// Fail if any serialization to bytes failed.
if (!present2Present || !post2present || !acquire2Present || !latch2Present ||
- !desired2Present || !post2Acquire || !frameRateVote || !appDeadlineMisses) {
+ !desired2Present || !post2Acquire || !frameRateVote || !appDeadlineMisses ||
+ !present2PresentDelta) {
return AStatsManager_PULL_SKIP;
}
@@ -159,7 +163,7 @@ AStatsManager_PullAtomCallbackReturn SurfaceFlingerPuller::parseLayerInfoPull(
atom.total_jank_frames_app_buffer_stuffing(),
atom.display_refresh_rate_bucket(), atom.render_rate_bucket(),
frameRateVote.value(), appDeadlineMisses.value(),
- atom.game_mode());
+ atom.game_mode(), present2PresentDelta.value());
}
return AStatsManager_PULL_SUCCESS;
}