Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: build/android/devil/android/perf/surface_stats_collector.py

Issue 1332603002: [Android] Move perf utilities into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: redirections for v8 Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import Queue 5 import Queue
6 import threading 6 import threading
7 7
8 8
9 # Log marker containing SurfaceTexture timestamps. 9 # Log marker containing SurfaceTexture timestamps.
10 _SURFACE_TEXTURE_TIMESTAMPS_MESSAGE = 'SurfaceTexture update timestamps' 10 _SURFACE_TEXTURE_TIMESTAMPS_MESSAGE = 'SurfaceTexture update timestamps'
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 fields = line.split() 174 fields = line.split()
175 if len(fields) != 3: 175 if len(fields) != 3:
176 continue 176 continue
177 timestamp = long(fields[1]) 177 timestamp = long(fields[1])
178 if timestamp == pending_fence_timestamp: 178 if timestamp == pending_fence_timestamp:
179 continue 179 continue
180 timestamp /= nanoseconds_per_millisecond 180 timestamp /= nanoseconds_per_millisecond
181 timestamps.append(timestamp) 181 timestamps.append(timestamp)
182 182
183 return (refresh_period, timestamps) 183 return (refresh_period, timestamps)
OLDNEW
« no previous file with comments | « build/android/devil/android/perf/perf_control_unittest.py ('k') | build/android/devil/android/perf/thermal_throttle.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698