Android: uses at least 3 samples for surface stats.

Follow-up on crrev.com/204593, fixes the bucket calculation.

BUG=

Review URL: https://chromiumcodereview.appspot.com/19055003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211196 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
bulach@chromium.org 2013-07-11 19:59:49 +00:00
Родитель 2b81c523e6
Коммит 3dec338d37
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -119,7 +119,7 @@ class SurfaceStatsCollector(object):
def _CalculateBuckets(refresh_period, timestamps):
results = []
for pct in [0.99, 0.5]:
sliced = timestamps[int(-pct * len(timestamps)) + 3 : ]
sliced = timestamps[min(int(-pct * len(timestamps)), -3) : ]
results += SurfaceStatsCollector._CalculateResults(
refresh_period, sliced, '_' + str(int(pct * 100)))
return results