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

Side by Side Diff: tools/telemetry/telemetry/trace_result.py

Issue 12082091: [telemetry] Add TraceResult as return value from tracing, and placeholder trace_event_importer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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
(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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698