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

Side by Side Diff: tools/telemetry/telemetry/core/chrome/trace_result.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 TraceResult(object): 5 class TraceResult(object):
6 def __init__(self, impl): 6 def __init__(self, impl):
7 self._impl = impl 7 self._impl = impl
8 8
9 def Serialize(self, f): 9 def Serialize(self, f):
10 """Serializes the trace result to a file-like object""" 10 """Serializes the trace result to a file-like object"""
11 return self._impl.Serialize(f) 11 return self._impl.Serialize(f)
12 12
13 def AsTimelineModel(self): 13 def AsTimelineModel(self):
14 """Parses the trace result into a timeline model for in-memory 14 """Parses the trace result into a timeline model for in-memory
15 manipulation.""" 15 manipulation."""
16 return self._impl.AsTimelineModel() 16 return self._impl.AsTimelineModel()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698