[Impeller] add trace events for VkRenderPass and VkFrameBuffer creation. (flutter/engine#44837)

To help diagnose https://github.com/flutter/flutter/issues/129392 , which seems to be just as bad on the Pixel 7s:

We're not blocking in allocation anymore thanks to our previous allocator clean ups, but something else is blocking. I think it might be one of these methods.

![image](https://github.com/flutter/engine/assets/8975114/b768b5d7-b8c1-4acd-b518-bfd83486d6b2)
This commit is contained in:
Jonah Williams
2023-08-18 09:24:50 -07:00
committed by GitHub
parent c25be8bb3a
commit 539e3833d2

View File

@@ -89,6 +89,7 @@ static vk::AttachmentDescription CreateAttachmentDescription(
SharedHandleVK<vk::RenderPass> RenderPassVK::CreateVKRenderPass(
const ContextVK& context,
const std::shared_ptr<CommandBufferVK>& command_buffer) const {
TRACE_EVENT0("impeller", "RenderPassVK::CreateVKRenderPass");
std::vector<vk::AttachmentDescription> attachments;
std::vector<vk::AttachmentReference> color_refs;
@@ -222,6 +223,7 @@ static std::vector<vk::ClearValue> GetVKClearValues(
SharedHandleVK<vk::Framebuffer> RenderPassVK::CreateVKFramebuffer(
const ContextVK& context,
const vk::RenderPass& pass) const {
TRACE_EVENT0("impeller", "RenderPassVK::CreateVKFramebuffer");
vk::FramebufferCreateInfo fb_info;
fb_info.renderPass = pass;