From 418c28e09a9bfedcdb981003a2f7417b84a00e82 Mon Sep 17 00:00:00 2001 From: luckysmg <2539699336@qq.com> Date: Tue, 11 Apr 2023 00:17:08 +0800 Subject: [PATCH] Add trace event when updating ViewportMetrics (flutter/engine#41024) Add trace event when updating ViewportMetrics --- engine/src/flutter/runtime/runtime_controller.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/runtime/runtime_controller.cc b/engine/src/flutter/runtime/runtime_controller.cc index 996cc38114..97664325fe 100644 --- a/engine/src/flutter/runtime/runtime_controller.cc +++ b/engine/src/flutter/runtime/runtime_controller.cc @@ -123,6 +123,7 @@ bool RuntimeController::FlushRuntimeStateToIsolate() { } bool RuntimeController::SetViewportMetrics(const ViewportMetrics& metrics) { + TRACE_EVENT0("flutter", "SetViewportMetrics"); platform_data_.viewport_metrics = metrics; if (auto* platform_configuration = GetPlatformConfigurationIfAvailable()) {