OSDN Git Service

Improving jank tests diagnostics
authorVadim Tryshev <vadimt@google.com>
Thu, 5 Apr 2018 20:50:38 +0000 (13:50 -0700)
committerVadim Tryshev <vadimt@google.com>
Fri, 6 Apr 2018 19:25:40 +0000 (12:25 -0700)
commita90b243e46da21a64872626e1e9bcaa18d51e437
tree41f889c8c0a00b11e8aaba64b30a5076d2264516
parent271ba383b6bfa07a97e4f5dd65a89679e0270bd7
Improving jank tests diagnostics

When there were 0 total frames, ProfileData generates something like:
Janky frames: 0 (nan%)

Then the test fails to parse it, and ends up with a mysterious
"Failed to parse NUM_JANKY" diag (see the bug).

Making the case 0/0 a 0%.

Bug: 77528721
Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests:android.platform.systemui.tests.jank.LauncherJankTests#testOpenAllAppsContainer
Change-Id: Ib65b80dc689f7b6ee06b108114ffd7de9d739721
libs/hwui/ProfileData.cpp