[Impeller] Add fence waiter trace event. (flutter/engine#43092)

I suspect that some of the worst frame times are caused by submission blocking on adding a fence. Add a trace event that would make that obvious.

![unnamed](https://github.com/flutter/engine/assets/8975114/93650ac8-4451-49d7-b8fa-00fc9f7f4277)
This commit is contained in:
Jonah Williams 2023-06-22 10:17:48 -07:00 committed by GitHub
parent aa890e3d65
commit 635a109a6d

View File

@ -30,6 +30,7 @@ bool FenceWaiterVK::IsValid() const {
bool FenceWaiterVK::AddFence(vk::UniqueFence fence,
const fml::closure& callback) {
TRACE_EVENT0("flutter", "FenceWaiterVK::AddFence");
if (!IsValid() || !fence || !callback) {
return false;
}