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

Side by Side Diff: tools/telemetry/telemetry/core/chrome/platform.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 class Platform(object): 5 class Platform(object):
6 """The platform that the target browser is running on. 6 """The platform that the target browser is running on.
7 7
8 Provides a limited interface to obtain stats from the platform itself, where 8 Provides a limited interface to obtain stats from the platform itself, where
9 possible. 9 possible.
10 """ 10 """
11 11
12 def GetSurfaceCollector(self, trace_tag): 12 def GetSurfaceCollector(self, trace_tag):
13 """Platforms may be able to collect GL surface stats.""" 13 """Platforms may be able to collect GL surface stats."""
14 class StubSurfaceCollector(object): 14 class StubSurfaceCollector(object):
15 def __init__(self, trace_tag): 15 def __init__(self, trace_tag):
16 pass 16 pass
17 def __enter__(self): 17 def __enter__(self):
18 pass 18 pass
19 def __exit__(self, *args): 19 def __exit__(self, *args):
20 pass 20 pass
21 21
22 return StubSurfaceCollector(trace_tag) 22 return StubSurfaceCollector(trace_tag)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698