diff options
| author | 2024-02-06 18:37:44 -0800 | |
|---|---|---|
| committer | 2024-02-07 20:42:08 +0000 | |
| commit | f380cf9041ce9486b709966405bf92a8fb5e5045 (patch) | |
| tree | 562e13a2c093127a6f675ec30158e2478be9fb39 | |
| parent | 3de7998ac795eb3438a014884e56f01a7a510f8e (diff) | |
SF: fix ATRACE from LayerHistory
Test: manual
Change-Id: I1758ce178454eff6d206553d3f8864946f69cb03
| -rw-r--r-- | services/surfaceflinger/Scheduler/LayerHistory.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/surfaceflinger/Scheduler/LayerHistory.cpp b/services/surfaceflinger/Scheduler/LayerHistory.cpp index 5ce883ce39..dcb62546a6 100644 --- a/services/surfaceflinger/Scheduler/LayerHistory.cpp +++ b/services/surfaceflinger/Scheduler/LayerHistory.cpp @@ -221,9 +221,8 @@ auto LayerHistory::summarize(const RefreshRateSelector& selector, nsecs_t now) - const std::string categoryString = vote.category == FrameRateCategory::Default ? "" : base::StringPrintf("category=%s", ftl::enum_string(vote.category).c_str()); - ATRACE_FORMAT_INSTANT("%s %s %s (%d%)", ftl::enum_string(vote.type).c_str(), - to_string(vote.fps).c_str(), categoryString.c_str(), - weight * 100); + ATRACE_FORMAT_INSTANT("%s %s %s (%.2f)", ftl::enum_string(vote.type).c_str(), + to_string(vote.fps).c_str(), categoryString.c_str(), weight); summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps, vote.seamlessness, vote.category, vote.categorySmoothSwitchOnly, weight, layerFocused}); |