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

Unified Diff: tools/telemetry/telemetry/timeline/event.py

Issue 1028903002: [Telemetry] Style fix, make docstrings consistent with style guide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/timeline/async_slice.py ('k') | tools/telemetry/telemetry/timeline/flow_event.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/timeline/event.py
diff --git a/tools/telemetry/telemetry/timeline/event.py b/tools/telemetry/telemetry/timeline/event.py
index 293e7754258eeed1061a65a9eab71d3448b745b3..996cba9b8908e261c26efb9dc3f5c90374da8041 100644
--- a/tools/telemetry/telemetry/timeline/event.py
+++ b/tools/telemetry/telemetry/timeline/event.py
@@ -5,12 +5,12 @@
class TimelineEvent(object):
"""Represents a timeline event.
- thread_start, thread_duration and thread_end are the start time, duration
- and end time of this event as measured by the thread-specific CPU clock
- (ticking when the thread is actually scheduled). Thread time is optional
- on trace events and the corresponding attributes in TimelineEvent will be
- set to None (not 0) if not present. Users of this class need to properly
- handle this case.
+ thread_start, thread_duration and thread_end are the start time, duration
+ and end time of this event as measured by the thread-specific CPU clock
+ (ticking when the thread is actually scheduled). Thread time is optional
+ on trace events and the corresponding attributes in TimelineEvent will be
+ set to None (not 0) if not present. Users of this class need to properly
+ handle this case.
"""
def __init__(self, category, name, start, duration, thread_start=None,
thread_duration=None, args=None):
@@ -34,7 +34,7 @@ class TimelineEvent(object):
def thread_end(self):
"""Thread-specific CPU time when this event ended.
- May be None if the trace event didn't have thread time data.
+ May be None if the trace event didn't have thread time data.
"""
if self.thread_start == None or self.thread_duration == None:
return None
« no previous file with comments | « tools/telemetry/telemetry/timeline/async_slice.py ('k') | tools/telemetry/telemetry/timeline/flow_event.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698