Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 29b455d

Browse files
[fuchsia] Change vsync trace name back to "vsync callback" on Fuchsia (#17118)
Fuchsia benchmarks depend the name being precisely "vsync callback". Since this is causing immediate build issues, change it back to "vsync callback" on Fuchsia. Stronger testing for this in the long run is currently under discussion. b/150902962
1 parent ef38760 commit 29b455d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

shell/common/vsync_waiter.cc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,24 @@ namespace flutter {
1111

1212
static constexpr const char* kVsyncFlowName = "VsyncFlow";
1313

14+
#if defined(OS_FUCHSIA)
15+
// ________ _________ ________ ________
16+
// |\ ____\|\___ ___\\ __ \|\ __ \
17+
// \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
18+
// \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
19+
// \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
20+
// ____\_\ \ \ \__\ \ \_______\ \__\
21+
// |\_________\ \|__| \|_______|\|__|
22+
// \|_________|
23+
//
24+
// Fuchsia benchmarks depend on this trace event's name. Please do not change
25+
// it without checking that the changes are compatible with Fuchsia benchmarks
26+
// first!
27+
static constexpr const char* kVsyncTraceName = "vsync callback";
28+
#else
29+
static constexpr const char* kVsyncTraceName = "VsyncProcessCallback";
30+
#endif
31+
1432
VsyncWaiter::VsyncWaiter(TaskRunners task_runners)
1533
: task_runners_(std::move(task_runners)) {}
1634

@@ -102,7 +120,7 @@ void VsyncWaiter::FireCallback(fml::TimePoint frame_start_time,
102120

103121
task_runners_.GetUITaskRunner()->PostTaskForTime(
104122
[callback, flow_identifier, frame_start_time, frame_target_time]() {
105-
FML_TRACE_EVENT("flutter", "VsyncProcessCallback", "StartTime",
123+
FML_TRACE_EVENT("flutter", kVsyncTraceName, "StartTime",
106124
frame_start_time, "TargetTime", frame_target_time);
107125
fml::tracing::TraceEventAsyncComplete(
108126
"flutter", "VsyncSchedulingOverhead", fml::TimePoint::Now(),

0 commit comments

Comments
 (0)