[Impeller] Fix pipeline stats traced to the timeline. (flutter/engine#43729)

The trace counter was missing the series name and ID.
This commit is contained in:
Chinmay Garde
2023-07-15 18:32:21 -07:00
committed by GitHub
parent a7fd72b8ed
commit 8655e83638

View File

@@ -205,7 +205,10 @@ static void ReportPipelineCreationFeedbackToTrace(
gPipelineCacheMisses++;
}
gPipelines++;
static constexpr int64_t kImpellerPipelineTraceID = 1988;
FML_TRACE_COUNTER("impeller", //
"PipelineCache", // series name
kImpellerPipelineTraceID, // series ID
"PipelineCacheHits", gPipelineCacheHits, //
"PipelineCacheMisses", gPipelineCacheMisses, //
"TotalPipelines", gPipelines //