2 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.core.timeline.thread
</title>
4 </head><body bgcolor=
"#f0f0f8">
6 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"heading">
8 <td valign=bottom
> <br>
9 <font color=
"#ffffff" face=
"helvetica, arial"> <br><big><big><strong><a href=
"telemetry.html"><font color=
"#ffffff">telemetry
</font></a>.
<a href=
"telemetry.core.html"><font color=
"#ffffff">core
</font></a>.
<a href=
"telemetry.core.timeline.html"><font color=
"#ffffff">timeline
</font></a>.thread
</strong></big></big></font></td
10 ><td align=right valign=bottom
11 ><font color=
"#ffffff" face=
"helvetica, arial"><a href=
".">index
</a><br><a href=
"../telemetry/core/timeline/thread.py">telemetry/core/timeline/thread.py
</a></font></td></tr></table>
12 <p><tt>#
Copyright
2013 The
Chromium
Authors.
All
rights
reserved.
<br>
13 #
Use
of
this
source
code
is
governed
by
a
BSD-style
license
that
can
be
<br>
14 #
found
in
the
LICENSE
file.
</tt></p>
16 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
17 <tr bgcolor=
"#aa55cc">
18 <td colspan=
3 valign=bottom
> <br>
19 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Modules
</strong></big></font></td></tr>
21 <tr><td bgcolor=
"#aa55cc"><tt> </tt></td><td> </td>
22 <td width=
"100%"><table width=
"100%" summary=
"list"><tr><td width=
"25%" valign=top
><a href=
"telemetry.core.timeline.event_container.html">telemetry.core.timeline.event_container
</a><br>
23 </td><td width=
"25%" valign=top
><a href=
"itertools.html">itertools
</a><br>
24 </td><td width=
"25%" valign=top
><a href=
"telemetry.core.timeline.sample.html">telemetry.core.timeline.sample
</a><br>
25 </td><td width=
"25%" valign=top
><a href=
"telemetry.core.timeline.slice.html">telemetry.core.timeline.slice
</a><br>
26 </td></tr></table></td></tr></table><p>
27 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
28 <tr bgcolor=
"#ee77aa">
29 <td colspan=
3 valign=bottom
> <br>
30 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Classes
</strong></big></font></td></tr>
32 <tr><td bgcolor=
"#ee77aa"><tt> </tt></td><td> </td>
34 <dt><font face=
"helvetica, arial"><a href=
"telemetry.core.timeline.event_container.html#TimelineEventContainer">telemetry.core.timeline.event_container.TimelineEventContainer
</a>(
<a href=
"__builtin__.html#object">__builtin__.object
</a>)
37 <dt><font face=
"helvetica, arial"><a href=
"telemetry.core.timeline.thread.html#Thread">Thread
</a>
42 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
43 <tr bgcolor=
"#ffc8d8">
44 <td colspan=
3 valign=bottom
> <br>
45 <font color=
"#000000" face=
"helvetica, arial"><a name=
"Thread">class
<strong>Thread
</strong></a>(
<a href=
"telemetry.core.timeline.event_container.html#TimelineEventContainer">telemetry.core.timeline.event_container.TimelineEventContainer
</a>)
</font></td></tr>
47 <tr bgcolor=
"#ffc8d8"><td rowspan=
2><tt> </tt></td>
48 <td colspan=
2><tt>A
<a href=
"#Thread">Thread
</a> stores
all
the
trace
events
collected
for
a
particular
<br>
49 thread.
We
organize
the
synchronous
slices
on
a
thread
by
"subrows," where
<br>
50 subrow
0 has
all
the
root
slices,
subrow
1 those
nested
1 deep,
and
so
on.
<br>
51 The
asynchronous
slices
are
stored
in
an
AsyncSliceGroup
object.
<br> </tt></td></tr>
53 <td width=
"100%"><dl><dt>Method resolution order:
</dt>
54 <dd><a href=
"telemetry.core.timeline.thread.html#Thread">Thread
</a></dd>
55 <dd><a href=
"telemetry.core.timeline.event_container.html#TimelineEventContainer">telemetry.core.timeline.event_container.TimelineEventContainer
</a></dd>
56 <dd><a href=
"__builtin__.html#object">__builtin__.object
</a></dd>
59 Methods defined here:
<br>
60 <dl><dt><a name=
"Thread-AddAsyncSlice"><strong>AddAsyncSlice
</strong></a>(self, async_slice)
</dt></dl>
62 <dl><dt><a name=
"Thread-AddFlowEvent"><strong>AddFlowEvent
</strong></a>(self, flow_event)
</dt></dl>
64 <dl><dt><a name=
"Thread-AddSample"><strong>AddSample
</strong></a>(self, category, name, timestamp, args
<font color=
"#909090">=None
</font>)
</dt></dl>
66 <dl><dt><a name=
"Thread-AutoCloseOpenSlices"><strong>AutoCloseOpenSlices
</strong></a>(self, max_timestamp, max_thread_timestamp)
</dt></dl>
68 <dl><dt><a name=
"Thread-BeginSlice"><strong>BeginSlice
</strong></a>(self, category, name, timestamp, thread_timestamp
<font color=
"#909090">=None
</font>, args
<font color=
"#909090">=None
</font>)
</dt><dd><tt>Opens
a
new
slice
for
the
thread.
<br>
69 Calls
to
beginSlice
and
endSlice
must
be
made
with
<br>
70 non-monotonically-decreasing
timestamps.
<br>
72 *
category:
Category
to
which
the
slice
belongs.
<br>
73 *
name:
Name
of
the
slice
to
add.
<br>
74 *
timestamp:
The
timetsamp
of
the
slice,
in
milliseconds.
<br>
75 *
thread_timestamp:
<a href=
"#Thread">Thread
</a> specific
clock
(scheduled)
timestamp
of
the
<br>
76 slice,
in
milliseconds.
<br>
77 *
args:
Arguments
associated
with
<br>
79 Returns
newly
opened
slice
</tt></dd></dl>
81 <dl><dt><a name=
"Thread-EndSlice"><strong>EndSlice
</strong></a>(self, end_timestamp, end_thread_timestamp
<font color=
"#909090">=None
</font>)
</dt><dd><tt>Ends
the
last
begun
slice
in
this
group
and
pushes
it
onto
the
slice
<br>
84 *
end_timestamp:
Timestamp
when
the
slice
ended
in
milliseconds
<br>
85 *
end_thread_timestamp:
Timestamp
when
the
scheduled
time
of
the
slice
ended
<br>
86 in
milliseconds
<br>
88 returns
completed
slice.
</tt></dd></dl>
90 <dl><dt><a name=
"Thread-FinalizeImport"><strong>FinalizeImport
</strong></a>(self)
</dt></dl>
92 <dl><dt><a name=
"Thread-IsTimestampValidForBeginOrEnd"><strong>IsTimestampValidForBeginOrEnd
</strong></a>(self, timestamp)
</dt></dl>
94 <dl><dt><a name=
"Thread-IterAllAsyncSlices"><strong>IterAllAsyncSlices
</strong></a>(self)
</dt></dl>
96 <dl><dt><a name=
"Thread-IterAllAsyncSlicesOfName"><strong>IterAllAsyncSlicesOfName
</strong></a>(self, name)
</dt></dl>
98 <dl><dt><a name=
"Thread-IterAllFlowEvents"><strong>IterAllFlowEvents
</strong></a>(self)
</dt></dl>
100 <dl><dt><a name=
"Thread-IterAllSlices"><strong>IterAllSlices
</strong></a>(self)
</dt></dl>
102 <dl><dt><a name=
"Thread-IterAllSlicesOfName"><strong>IterAllSlicesOfName
</strong></a>(self, name)
</dt></dl>
104 <dl><dt><a name=
"Thread-IterChildContainers"><strong>IterChildContainers
</strong></a>(self)
</dt></dl>
106 <dl><dt><a name=
"Thread-IterEventsInThisContainer"><strong>IterEventsInThisContainer
</strong></a>(self)
</dt></dl>
108 <dl><dt><a name=
"Thread-PushCompleteSlice"><strong>PushCompleteSlice
</strong></a>(self, category, name, timestamp, duration, thread_timestamp, thread_duration, args
<font color=
"#909090">=None
</font>)
</dt></dl>
110 <dl><dt><a name=
"Thread-PushSlice"><strong>PushSlice
</strong></a>(self, new_slice)
</dt></dl>
112 <dl><dt><a name=
"Thread-__init__"><strong>__init__
</strong></a>(self, process, tid)
</dt></dl>
115 Data descriptors defined here:
<br>
116 <dl><dt><strong>all_slices
</strong></dt>
118 <dl><dt><strong>async_slices
</strong></dt>
120 <dl><dt><strong>open_slice_count
</strong></dt>
122 <dl><dt><strong>samples
</strong></dt>
124 <dl><dt><strong>toplevel_slices
</strong></dt>
127 Data descriptors inherited from
<a href=
"telemetry.core.timeline.event_container.html#TimelineEventContainer">telemetry.core.timeline.event_container.TimelineEventContainer
</a>:
<br>
128 <dl><dt><strong>__dict__
</strong></dt>
129 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
131 <dl><dt><strong>__weakref__
</strong></dt>
132 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
134 </td></tr></table></td></tr></table>