OLD | NEW |
| (Empty) |
1 | |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
3 <html><head><title>Python: module telemetry.timeline.counter</title> | |
4 <meta charset="utf-8"> | |
5 </head><body bgcolor="#f0f0f8"> | |
6 | |
7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | |
8 <tr bgcolor="#7799ee"> | |
9 <td valign=bottom> <br> | |
10 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.timeline.html"><font color="#ffffff">timeline</font></a>.counter</strong></big>
</big></font></td | |
11 ><td align=right valign=bottom | |
12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/timeline/counter.py">telemetry/timeline/counter.py</a></font></td>
</tr></table> | |
13 <p><tt># Copyright 2014 The Chromium Authors.
All rights reserved.<br> | |
14 # Use of this source code is governed by
a BSD-style license that can be<br> | |
15 # found in the LICENSE file.</tt></p> | |
16 <p> | |
17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
18 <tr bgcolor="#aa55cc"> | |
19 <td colspan=3 valign=bottom> <br> | |
20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> | |
21 | |
22 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> | |
23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.timeline.event_container.html">telemetry.timeline.event_co
ntainer</a><br> | |
24 </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="
25%" valign=top></td></tr></table></td></tr></table><p> | |
25 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
26 <tr bgcolor="#ee77aa"> | |
27 <td colspan=3 valign=bottom> <br> | |
28 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | |
29 | |
30 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | |
31 <td width="100%"><dl> | |
32 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> | |
33 </font></dt><dd> | |
34 <dl> | |
35 <dt><font face="helvetica, arial"><a href="telemetry.timeline.counter.html#Count
erSample">CounterSample</a> | |
36 </font></dt></dl> | |
37 </dd> | |
38 <dt><font face="helvetica, arial"><a href="telemetry.timeline.event_container.ht
ml#TimelineEventContainer">telemetry.timeline.event_container.TimelineEventConta
iner</a>(<a href="__builtin__.html#object">__builtin__.object</a>) | |
39 </font></dt><dd> | |
40 <dl> | |
41 <dt><font face="helvetica, arial"><a href="telemetry.timeline.counter.html#Count
er">Counter</a> | |
42 </font></dt></dl> | |
43 </dd> | |
44 </dl> | |
45 <p> | |
46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
47 <tr bgcolor="#ffc8d8"> | |
48 <td colspan=3 valign=bottom> <br> | |
49 <font color="#000000" face="helvetica, arial"><a name="Counter">class <strong>Co
unter</strong></a>(<a href="telemetry.timeline.event_container.html#TimelineEven
tContainer">telemetry.timeline.event_container.TimelineEventContainer</a>)</font
></td></tr> | |
50 | |
51 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | |
52 <td colspan=2><tt>Stores all the samples for a giv
en counter.<br> </tt></td></tr> | |
53 <tr><td> </td> | |
54 <td width="100%"><dl><dt>Method resolution order:</dt> | |
55 <dd><a href="telemetry.timeline.counter.html#Counter">Counter</a></dd> | |
56 <dd><a href="telemetry.timeline.event_container.html#TimelineEventContainer">tel
emetry.timeline.event_container.TimelineEventContainer</a></dd> | |
57 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
58 </dl> | |
59 <hr> | |
60 Methods defined here:<br> | |
61 <dl><dt><a name="Counter-FinalizeImport"><strong>FinalizeImport</strong></a>(sel
f)</dt></dl> | |
62 | |
63 <dl><dt><a name="Counter-IterChildContainers"><strong>IterChildContainers</stron
g></a>(self)</dt></dl> | |
64 | |
65 <dl><dt><a name="Counter-IterEventsInThisContainer"><strong>IterEventsInThisCont
ainer</strong></a>(self, event_type_predicate, event_predicate)</dt></dl> | |
66 | |
67 <dl><dt><a name="Counter-__init__"><strong>__init__</strong></a>(self, parent, c
ategory, name)</dt></dl> | |
68 | |
69 <hr> | |
70 Data descriptors defined here:<br> | |
71 <dl><dt><strong>num_samples</strong></dt> | |
72 </dl> | |
73 <dl><dt><strong>num_series</strong></dt> | |
74 </dl> | |
75 <hr> | |
76 Methods inherited from <a href="telemetry.timeline.event_container.html#Timeline
EventContainer">telemetry.timeline.event_container.TimelineEventContainer</a>:<b
r> | |
77 <dl><dt><a name="Counter-GetAllEvents"><strong>GetAllEvents</strong></a>(self, r
ecursive<font color="#909090">=True</font>)</dt><dd><tt># List version
s. These should always be simple expressions
that list() on<br> | |
78 # an underlying iter method.</tt></dd></dl> | |
79 | |
80 <dl><dt><a name="Counter-GetAllEventsOfName"><strong>GetAllEventsOfName</strong>
</a>(self, name, recursive<font color="#909090">=True</font>)</dt></dl> | |
81 | |
82 <dl><dt><a name="Counter-GetAllToplevelSlicesOfName"><strong>GetAllToplevelSlice
sOfName</strong></a>(self, name, recursive<font color="#909090">=True</font>)</d
t></dl> | |
83 | |
84 <dl><dt><a name="Counter-IterAllAsyncSlicesOfName"><strong>IterAllAsyncSlicesOfN
ame</strong></a>(self, name, recursive<font color="#909090">=True</font>)</dt></
dl> | |
85 | |
86 <dl><dt><a name="Counter-IterAllAsyncSlicesStartsWithName"><strong>IterAllAsyncS
licesStartsWithName</strong></a>(self, name, recursive<font color="#909090">=Tru
e</font>)</dt></dl> | |
87 | |
88 <dl><dt><a name="Counter-IterAllEvents"><strong>IterAllEvents</strong></a>(self,
recursive<font color="#909090">=True</font>, event_type_predicate<font color="#
909090">=<function <lambda>></font>, event_predicate<font color="#90
9090">=<function <lambda>></font>)</dt><dd><tt>Iterates all&nbs
p;events in this container, pre-filtered by two&nb
sp;predicates.<br> | |
89 <br> | |
90 Only events with a type matching event_type_predic
ate AND matching event<br> | |
91 event_predicate will be yielded.<br> | |
92 <br> | |
93 event_type_predicate is given an actual type <a hr
ef="__builtin__.html#object">object</a>, e.g.:<br> | |
94 event_type_predicate(slice_module.Slice)<br> | |
95 <br> | |
96 event_predicate is given actual events:<br> | |
97 event_predicate(thread.slices[7])</tt></dd></dl> | |
98 | |
99 <dl><dt><a name="Counter-IterAllEventsOfName"><strong>IterAllEventsOfName</stron
g></a>(self, name, recursive<font color="#909090">=True</font>)</dt><dd><tt>#&nb
sp;Helper functions for finding common kinds of&nb
sp;events. Must always take an<br> | |
100 # optinal recurisve parameter and be implemented&n
bsp;in terms fo IterAllEvents.</tt></dd></dl> | |
101 | |
102 <dl><dt><a name="Counter-IterAllFlowEvents"><strong>IterAllFlowEvents</strong></
a>(self, recursive<font color="#909090">=True</font>)</dt></dl> | |
103 | |
104 <dl><dt><a name="Counter-IterAllSlices"><strong>IterAllSlices</strong></a>(self,
recursive<font color="#909090">=True</font>)</dt></dl> | |
105 | |
106 <dl><dt><a name="Counter-IterAllSlicesInRange"><strong>IterAllSlicesInRange</str
ong></a>(self, start, end, recursive<font color="#909090">=True</font>)</dt></dl
> | |
107 | |
108 <dl><dt><a name="Counter-IterAllSlicesOfName"><strong>IterAllSlicesOfName</stron
g></a>(self, name, recursive<font color="#909090">=True</font>)</dt></dl> | |
109 | |
110 <dl><dt><a name="Counter-IterAllToplevelSlicesOfName"><strong>IterAllToplevelSli
cesOfName</strong></a>(self, name, recursive<font color="#909090">=True</font>)<
/dt></dl> | |
111 | |
112 <hr> | |
113 Static methods inherited from <a href="telemetry.timeline.event_container.html#T
imelineEventContainer">telemetry.timeline.event_container.TimelineEventContainer
</a>:<br> | |
114 <dl><dt><a name="Counter-IsAsyncSlice"><strong>IsAsyncSlice</strong></a>(t)</dt>
</dl> | |
115 | |
116 <hr> | |
117 Data descriptors inherited from <a href="telemetry.timeline.event_container.html
#TimelineEventContainer">telemetry.timeline.event_container.TimelineEventContain
er</a>:<br> | |
118 <dl><dt><strong>__dict__</strong></dt> | |
119 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
120 </dl> | |
121 <dl><dt><strong>__weakref__</strong></dt> | |
122 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
123 </dl> | |
124 </td></tr></table> <p> | |
125 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
126 <tr bgcolor="#ffc8d8"> | |
127 <td colspan=3 valign=bottom> <br> | |
128 <font color="#000000" face="helvetica, arial"><a name="CounterSample">class <str
ong>CounterSample</strong></a>(<a href="__builtin__.html#object">__builtin__.obj
ect</a>)</font></td></tr> | |
129 | |
130 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | |
131 <td colspan=2><tt># Doesn't inherit from TimelineEvent
because its only a temporary wrapper of a<br> | |
132 # counter sample into an event. During stable
operation, the samples are stored<br> | |
133 # a dense array of values rather than in
the long-form done by an Event.<br> </tt></t
d></tr> | |
134 <tr><td> </td> | |
135 <td width="100%">Methods defined here:<br> | |
136 <dl><dt><a name="CounterSample-__init__"><strong>__init__</strong></a>(self, cou
nter, sample_index)</dt></dl> | |
137 | |
138 <hr> | |
139 Data descriptors defined here:<br> | |
140 <dl><dt><strong>__dict__</strong></dt> | |
141 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
142 </dl> | |
143 <dl><dt><strong>__weakref__</strong></dt> | |
144 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
145 </dl> | |
146 <dl><dt><strong>category</strong></dt> | |
147 </dl> | |
148 <dl><dt><strong>duration</strong></dt> | |
149 </dl> | |
150 <dl><dt><strong>end</strong></dt> | |
151 </dl> | |
152 <dl><dt><strong>name</strong></dt> | |
153 </dl> | |
154 <dl><dt><strong>start</strong></dt> | |
155 </dl> | |
156 <dl><dt><strong>thread_duration</strong></dt> | |
157 </dl> | |
158 <dl><dt><strong>thread_end</strong></dt> | |
159 </dl> | |
160 <dl><dt><strong>thread_start</strong></dt> | |
161 </dl> | |
162 <dl><dt><strong>value</strong></dt> | |
163 </dl> | |
164 </td></tr></table></td></tr></table> | |
165 </body></html> | |
OLD | NEW |