OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 class TraceResult(object): | |
6 def __init__(self, impl): | |
7 self._impl = impl | |
8 | |
9 def Serialize(self, f): | |
10 """Serializes the trace result to a file-like object""" | |
11 return self._impl.Serialize(f) | |
12 | |
13 def AsTimelineModel(self): | |
14 """Parses the trace result into a timeline model for in-memory | |
15 manipulation.""" | |
16 return self._impl.AsTimelineModel() | |
OLD | NEW |