diff options
author | Gurpreet Singh Dhami <gdhami@codeaurora.org> | 2019-04-10 17:06:57 -0400 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-11 14:33:05 -0700 |
commit | 29525dff7e762b97264f5def38ac550d05e7087c (patch) | |
tree | 3a2c68bd701cf2c036ae4d92250ef592d88baad8 /sdm/libs/hwc2/hwc_session.cpp | |
parent | fba354193c2e745f5c9dc9e61596ee45e4badccd (diff) |
display: add logs for systrace debugging
Change-Id: I94013a446b4a39b874df4dfab1ecfb1ae832fce8
Diffstat (limited to 'sdm/libs/hwc2/hwc_session.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_session.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp index 19135535..f795b9ce 100644 --- a/sdm/libs/hwc2/hwc_session.cpp +++ b/sdm/libs/hwc2/hwc_session.cpp @@ -2774,6 +2774,8 @@ void HWCSession::DestroyNonPluggableDisplay(DisplayMapInfo *map_info) { HWC2::Error HWCSession::ValidateDisplayInternal(hwc2_display_t display, uint32_t *out_num_types, uint32_t *out_num_requests) { HWCDisplay *hwc_display = hwc_display_[display]; + + DTRACE_SCOPED(); if (hwc_display->IsInternalValidateState()) { // Internal Validation has already been done on display, get the Output params. return hwc_display->GetValidateDisplayOutput(out_num_types, out_num_requests); @@ -2796,6 +2798,8 @@ HWC2::Error HWCSession::ValidateDisplayInternal(hwc2_display_t display, uint32_t HWC2::Error HWCSession::PresentDisplayInternal(hwc2_display_t display, int32_t *out_retire_fence) { HWCDisplay *hwc_display = hwc_display_[display]; + + DTRACE_SCOPED(); // If display is in Skip-Validate state and Validate cannot be skipped, do Internal // Validation to optimize for the frames which don't require the Client composition. if (hwc_display->IsSkipValidateState() && !hwc_display->CanSkipValidate()) { |