OLD | NEW |
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() |
OLD | NEW |