Skip to content

Commit 9de2d94

Browse files
adyabrAndroid (Google) Code Review
authored andcommitted
Merge "SF: fix ATRACE from LayerHistory" into main
2 parents 96d8338 + f380cf9 commit 9de2d94

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

services/surfaceflinger/Scheduler/LayerHistory.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,8 @@ auto LayerHistory::summarize(const RefreshRateSelector& selector, nsecs_t now) -
221221
const std::string categoryString = vote.category == FrameRateCategory::Default
222222
? ""
223223
: base::StringPrintf("category=%s", ftl::enum_string(vote.category).c_str());
224-
ATRACE_FORMAT_INSTANT("%s %s %s (%d%)", ftl::enum_string(vote.type).c_str(),
225-
to_string(vote.fps).c_str(), categoryString.c_str(),
226-
weight * 100);
224+
ATRACE_FORMAT_INSTANT("%s %s %s (%.2f)", ftl::enum_string(vote.type).c_str(),
225+
to_string(vote.fps).c_str(), categoryString.c_str(), weight);
227226
summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps,
228227
vote.seamlessness, vote.category, vote.categorySmoothSwitchOnly,
229228
weight, layerFocused});

0 commit comments

Comments
 (0)