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

Side by Side Diff: tools/telemetry/telemetry/core/timeline/tracing/sample.py

Issue 19772005: [telemetry] Timeline model cleanups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move things around and update docs Created 7 years, 5 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 2013 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 import telemetry.core.timeline.event as timeline_event
6
7 class Sample(timeline_event.TimelineEvent):
8 ''' A Sample represents a sample taken at an instant in time
9 plus parameters associated with that sample.
10
11 NOTE: The Sample class implements the same interface as
12 Slice. These must be kept in sync.
13
14 All time units are stored in milliseconds.
15 '''
16 def __init__(self, category, name, timestamp, args=None, parent=None):
17 super(Sample, self).__init__(
18 name, timestamp, 0, args=args, parent=parent)
19 self.category = category
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698