display: add logs for systrace debugging
Change-Id: I94013a446b4a39b874df4dfab1ecfb1ae832fce8
CRs-Fixed: 2433885
diff --git a/sdm/libs/hwc2/hwc_display_builtin.cpp b/sdm/libs/hwc2/hwc_display_builtin.cpp
index 7a8f262..d942077 100644
--- a/sdm/libs/hwc2/hwc_display_builtin.cpp
+++ b/sdm/libs/hwc2/hwc_display_builtin.cpp
@@ -169,6 +169,8 @@
auto status = HWC2::Error::None;
DisplayError error = kErrorNone;
+ DTRACE_SCOPED();
+
if (default_mode_status_ && !boot_animation_completed_) {
ProcessBootAnimCompleted();
}
@@ -237,6 +239,8 @@
HWC2::Error HWCDisplayBuiltIn::Present(int32_t *out_retire_fence) {
auto status = HWC2::Error::None;
+
+ DTRACE_SCOPED();
if (display_paused_) {
DisplayError error = display_intf_->Flush(&layer_stack_);
validated_ = false;