OLD | NEW |
| (Empty) |
1 | |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
3 <html><head><title>Python: module telemetry.internal.backends.chrome_inspector.m
emory_backend</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
.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.int
ernal.backends.html"><font color="#ffffff">backends</font></a>.<a href="telemetr
y.internal.backends.chrome_inspector.html"><font color="#ffffff">chrome_inspecto
r</font></a>.memory_backend</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/internal/backends/chrome_inspector/memory_backend.py">telemetry/in
ternal/backends/chrome_inspector/memory_backend.py</a></font></td></tr></table> | |
13 <p><tt># Copyright 2015 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.internal.backends.chrome_inspector.inspector_websocket.htm
l">telemetry.internal.backends.chrome_inspector.inspector_websocket</a><br> | |
24 <a href="json.html">json</a><br> | |
25 </td><td width="25%" valign=top><a href="logging.html">logging</a><br> | |
26 <a href="socket.html">socket</a><br> | |
27 </td><td width="25%" valign=top><a href="traceback.html">traceback</a><br> | |
28 <a href="telemetry.internal.backends.chrome_inspector.websocket.html">telemetry.
internal.backends.chrome_inspector.websocket</a><br> | |
29 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | |
30 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
31 <tr bgcolor="#ee77aa"> | |
32 <td colspan=3 valign=bottom> <br> | |
33 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | |
34 | |
35 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | |
36 <td width="100%"><dl> | |
37 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> | |
38 </font></dt><dd> | |
39 <dl> | |
40 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome_in
spector.memory_backend.html#MemoryBackend">MemoryBackend</a> | |
41 </font></dt></dl> | |
42 </dd> | |
43 <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions
.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException<
/a>) | |
44 </font></dt><dd> | |
45 <dl> | |
46 <dt><font face="helvetica, arial"><a href="telemetry.internal.backends.chrome_in
spector.memory_backend.html#MemoryTimeoutException">MemoryTimeoutException</a> | |
47 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.internal.backen
ds.chrome_inspector.memory_backend.html#MemoryUnexpectedResponseException">Memor
yUnexpectedResponseException</a> | |
48 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.internal.backen
ds.chrome_inspector.memory_backend.html#MemoryUnrecoverableException">MemoryUnre
coverableException</a> | |
49 </font></dt></dl> | |
50 </dd> | |
51 </dl> | |
52 <p> | |
53 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
54 <tr bgcolor="#ffc8d8"> | |
55 <td colspan=3 valign=bottom> <br> | |
56 <font color="#000000" face="helvetica, arial"><a name="MemoryBackend">class <str
ong>MemoryBackend</strong></a>(<a href="__builtin__.html#object">__builtin__.obj
ect</a>)</font></td></tr> | |
57 | |
58 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | |
59 <td width="100%">Methods defined here:<br> | |
60 <dl><dt><a name="MemoryBackend-Close"><strong>Close</strong></a>(self)</dt></dl> | |
61 | |
62 <dl><dt><a name="MemoryBackend-SetMemoryPressureNotificationsSuppressed"><strong
>SetMemoryPressureNotificationsSuppressed</strong></a>(self, suppressed, timeout
<font color="#909090">=30</font>)</dt><dd><tt>Enable/disable suppressing&nb
sp;memory pressure notifications.<br> | |
63 <br> | |
64 Args:<br> | |
65 suppressed: If true, memory pressure notifi
cations will be suppressed.<br> | |
66 timeout: The timeout in seconds.<br> | |
67 <br> | |
68 Raises:<br> | |
69 <a href="#MemoryTimeoutException">MemoryTimeoutException</a>: I
f more than |timeout| seconds has passed<br> | |
70 since the last time any data is r
eceived.<br> | |
71 <a href="#MemoryUnrecoverableException">MemoryUnrecoverableException
</a>: If there is a websocket error.<br> | |
72 <a href="#MemoryUnexpectedResponseException">MemoryUnexpectedRespons
eException</a>: If the response contains an error<
br> | |
73 or does not contain the expected resul
t.</tt></dd></dl> | |
74 | |
75 <dl><dt><a name="MemoryBackend-SimulateMemoryPressureNotification"><strong>Simul
ateMemoryPressureNotification</strong></a>(self, pressure_level, timeout<font co
lor="#909090">=30</font>)</dt><dd><tt>Simulate a memory pressure&
nbsp;notification.<br> | |
76 <br> | |
77 Args:<br> | |
78 pressure level: The memory pressure level&n
bsp;of the notification ('moderate'<br> | |
79 or 'critical').<br> | |
80 timeout: The timeout in seconds.<br> | |
81 <br> | |
82 Raises:<br> | |
83 <a href="#MemoryTimeoutException">MemoryTimeoutException</a>: I
f more than |timeout| seconds has passed<br> | |
84 since the last time any data is r
eceived.<br> | |
85 <a href="#MemoryUnrecoverableException">MemoryUnrecoverableException
</a>: If there is a websocket error.<br> | |
86 <a href="#MemoryUnexpectedResponseException">MemoryUnexpectedRespons
eException</a>: If the response contains an error<
br> | |
87 or does not contain the expected resul
t.</tt></dd></dl> | |
88 | |
89 <dl><dt><a name="MemoryBackend-__init__"><strong>__init__</strong></a>(self, ins
pector_socket)</dt></dl> | |
90 | |
91 <hr> | |
92 Data descriptors defined here:<br> | |
93 <dl><dt><strong>__dict__</strong></dt> | |
94 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | |
95 </dl> | |
96 <dl><dt><strong>__weakref__</strong></dt> | |
97 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
98 </dl> | |
99 </td></tr></table> <p> | |
100 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
101 <tr bgcolor="#ffc8d8"> | |
102 <td colspan=3 valign=bottom> <br> | |
103 <font color="#000000" face="helvetica, arial"><a name="MemoryTimeoutException">c
lass <strong>MemoryTimeoutException</strong></a>(<a href="exceptions.html#Except
ion">exceptions.Exception</a>)</font></td></tr> | |
104 | |
105 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | |
106 <td width="100%"><dl><dt>Method resolution order:</dt> | |
107 <dd><a href="telemetry.internal.backends.chrome_inspector.memory_backend.html#Me
moryTimeoutException">MemoryTimeoutException</a></dd> | |
108 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> | |
109 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> | |
110 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
111 </dl> | |
112 <hr> | |
113 Data descriptors defined here:<br> | |
114 <dl><dt><strong>__weakref__</strong></dt> | |
115 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
116 </dl> | |
117 <hr> | |
118 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception<
/a>:<br> | |
119 <dl><dt><a name="MemoryTimeoutException-__init__"><strong>__init__</strong></a>(
...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__init__">__init__</a>(...)&
nbsp;initializes x; see help(type(x)) for signature</tt
></dd></dl> | |
120 | |
121 <hr> | |
122 Data and other attributes inherited from <a href="exceptions.html#Exception">exc
eptions.Exception</a>:<br> | |
123 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object>
;<dd><tt>T.<a href="#MemoryTimeoutException-__new__">__new__</a>(S, ...)&nb
sp;-> a new <a href="__builtin__.html#object">object</a>
with type S, a subtype of T</tt></dl> | |
124 | |
125 <hr> | |
126 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseEx
ception</a>:<br> | |
127 <dl><dt><a name="MemoryTimeoutException-__delattr__"><strong>__delattr__</strong
></a>(...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__delattr__">__delattr
__</a>('name') <==> del x.name</tt></dd></dl> | |
128 | |
129 <dl><dt><a name="MemoryTimeoutException-__getattribute__"><strong>__getattribute
__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__getattribu
te__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> | |
130 | |
131 <dl><dt><a name="MemoryTimeoutException-__getitem__"><strong>__getitem__</strong
></a>(...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__getitem__">__getitem
__</a>(y) <==> x[y]</tt></dd></dl> | |
132 | |
133 <dl><dt><a name="MemoryTimeoutException-__getslice__"><strong>__getslice__</stro
ng></a>(...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__getslice__">__gets
lice__</a>(i, j) <==> x[i:j]<br> | |
134 <br> | |
135 Use of negative indices is not supported.</tt></dd
></dl> | |
136 | |
137 <dl><dt><a name="MemoryTimeoutException-__reduce__"><strong>__reduce__</strong><
/a>(...)</dt></dl> | |
138 | |
139 <dl><dt><a name="MemoryTimeoutException-__repr__"><strong>__repr__</strong></a>(
...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__repr__">__repr__</a>()&nbs
p;<==> repr(x)</tt></dd></dl> | |
140 | |
141 <dl><dt><a name="MemoryTimeoutException-__setattr__"><strong>__setattr__</strong
></a>(...)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__setattr__">__setattr
__</a>('name', value) <==> x.name = value</tt></d
d></dl> | |
142 | |
143 <dl><dt><a name="MemoryTimeoutException-__setstate__"><strong>__setstate__</stro
ng></a>(...)</dt></dl> | |
144 | |
145 <dl><dt><a name="MemoryTimeoutException-__str__"><strong>__str__</strong></a>(..
.)</dt><dd><tt>x.<a href="#MemoryTimeoutException-__str__">__str__</a>() &l
t;==> str(x)</tt></dd></dl> | |
146 | |
147 <dl><dt><a name="MemoryTimeoutException-__unicode__"><strong>__unicode__</strong
></a>(...)</dt></dl> | |
148 | |
149 <hr> | |
150 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptio
ns.BaseException</a>:<br> | |
151 <dl><dt><strong>__dict__</strong></dt> | |
152 </dl> | |
153 <dl><dt><strong>args</strong></dt> | |
154 </dl> | |
155 <dl><dt><strong>message</strong></dt> | |
156 </dl> | |
157 </td></tr></table> <p> | |
158 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
159 <tr bgcolor="#ffc8d8"> | |
160 <td colspan=3 valign=bottom> <br> | |
161 <font color="#000000" face="helvetica, arial"><a name="MemoryUnexpectedResponseE
xception">class <strong>MemoryUnexpectedResponseException</strong></a>(<a href="
exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> | |
162 | |
163 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | |
164 <td width="100%"><dl><dt>Method resolution order:</dt> | |
165 <dd><a href="telemetry.internal.backends.chrome_inspector.memory_backend.html#Me
moryUnexpectedResponseException">MemoryUnexpectedResponseException</a></dd> | |
166 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> | |
167 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> | |
168 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
169 </dl> | |
170 <hr> | |
171 Data descriptors defined here:<br> | |
172 <dl><dt><strong>__weakref__</strong></dt> | |
173 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
174 </dl> | |
175 <hr> | |
176 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception<
/a>:<br> | |
177 <dl><dt><a name="MemoryUnexpectedResponseException-__init__"><strong>__init__</s
trong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseException-__init
__">__init__</a>(...) initializes x; see help(type(x))
for signature</tt></dd></dl> | |
178 | |
179 <hr> | |
180 Data and other attributes inherited from <a href="exceptions.html#Exception">exc
eptions.Exception</a>:<br> | |
181 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object>
;<dd><tt>T.<a href="#MemoryUnexpectedResponseException-__new__">__new__</a>(S,&n
bsp;...) -> a new <a href="__builtin__.html#object">objec
t</a> with type S, a subtype of T</tt></dl> | |
182 | |
183 <hr> | |
184 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseEx
ception</a>:<br> | |
185 <dl><dt><a name="MemoryUnexpectedResponseException-__delattr__"><strong>__delatt
r__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseException-
__delattr__">__delattr__</a>('name') <==> del x.name</tt></
dd></dl> | |
186 | |
187 <dl><dt><a name="MemoryUnexpectedResponseException-__getattribute__"><strong>__g
etattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponse
Exception-__getattribute__">__getattribute__</a>('name') <==> x.
name</tt></dd></dl> | |
188 | |
189 <dl><dt><a name="MemoryUnexpectedResponseException-__getitem__"><strong>__getite
m__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseException-
__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> | |
190 | |
191 <dl><dt><a name="MemoryUnexpectedResponseException-__getslice__"><strong>__getsl
ice__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseExceptio
n-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> | |
192 <br> | |
193 Use of negative indices is not supported.</tt></dd
></dl> | |
194 | |
195 <dl><dt><a name="MemoryUnexpectedResponseException-__reduce__"><strong>__reduce_
_</strong></a>(...)</dt></dl> | |
196 | |
197 <dl><dt><a name="MemoryUnexpectedResponseException-__repr__"><strong>__repr__</s
trong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseException-__repr
__">__repr__</a>() <==> repr(x)</tt></dd></dl> | |
198 | |
199 <dl><dt><a name="MemoryUnexpectedResponseException-__setattr__"><strong>__setatt
r__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseException-
__setattr__">__setattr__</a>('name', value) <==> x.name&nbs
p;= value</tt></dd></dl> | |
200 | |
201 <dl><dt><a name="MemoryUnexpectedResponseException-__setstate__"><strong>__setst
ate__</strong></a>(...)</dt></dl> | |
202 | |
203 <dl><dt><a name="MemoryUnexpectedResponseException-__str__"><strong>__str__</str
ong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnexpectedResponseException-__str__"
>__str__</a>() <==> str(x)</tt></dd></dl> | |
204 | |
205 <dl><dt><a name="MemoryUnexpectedResponseException-__unicode__"><strong>__unicod
e__</strong></a>(...)</dt></dl> | |
206 | |
207 <hr> | |
208 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptio
ns.BaseException</a>:<br> | |
209 <dl><dt><strong>__dict__</strong></dt> | |
210 </dl> | |
211 <dl><dt><strong>args</strong></dt> | |
212 </dl> | |
213 <dl><dt><strong>message</strong></dt> | |
214 </dl> | |
215 </td></tr></table> <p> | |
216 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | |
217 <tr bgcolor="#ffc8d8"> | |
218 <td colspan=3 valign=bottom> <br> | |
219 <font color="#000000" face="helvetica, arial"><a name="MemoryUnrecoverableExcept
ion">class <strong>MemoryUnrecoverableException</strong></a>(<a href="exceptions
.html#Exception">exceptions.Exception</a>)</font></td></tr> | |
220 | |
221 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | |
222 <td width="100%"><dl><dt>Method resolution order:</dt> | |
223 <dd><a href="telemetry.internal.backends.chrome_inspector.memory_backend.html#Me
moryUnrecoverableException">MemoryUnrecoverableException</a></dd> | |
224 <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> | |
225 <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> | |
226 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | |
227 </dl> | |
228 <hr> | |
229 Data descriptors defined here:<br> | |
230 <dl><dt><strong>__weakref__</strong></dt> | |
231 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | |
232 </dl> | |
233 <hr> | |
234 Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception<
/a>:<br> | |
235 <dl><dt><a name="MemoryUnrecoverableException-__init__"><strong>__init__</strong
></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__init__">__init
__</a>(...) initializes x; see help(type(x)) for s
ignature</tt></dd></dl> | |
236 | |
237 <hr> | |
238 Data and other attributes inherited from <a href="exceptions.html#Exception">exc
eptions.Exception</a>:<br> | |
239 <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object>
;<dd><tt>T.<a href="#MemoryUnrecoverableException-__new__">__new__</a>(S, .
..) -> a new <a href="__builtin__.html#object">object</a>
with type S, a subtype of T</tt></dl> | |
240 | |
241 <hr> | |
242 Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseEx
ception</a>:<br> | |
243 <dl><dt><a name="MemoryUnrecoverableException-__delattr__"><strong>__delattr__</
strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__delattr_
_">__delattr__</a>('name') <==> del x.name</tt></dd></dl> | |
244 | |
245 <dl><dt><a name="MemoryUnrecoverableException-__getattribute__"><strong>__getatt
ribute__</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-
__getattribute__">__getattribute__</a>('name') <==> x.name</tt><
/dd></dl> | |
246 | |
247 <dl><dt><a name="MemoryUnrecoverableException-__getitem__"><strong>__getitem__</
strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__getitem_
_">__getitem__</a>(y) <==> x[y]</tt></dd></dl> | |
248 | |
249 <dl><dt><a name="MemoryUnrecoverableException-__getslice__"><strong>__getslice__
</strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__getsli
ce__">__getslice__</a>(i, j) <==> x[i:j]<br> | |
250 <br> | |
251 Use of negative indices is not supported.</tt></dd
></dl> | |
252 | |
253 <dl><dt><a name="MemoryUnrecoverableException-__reduce__"><strong>__reduce__</st
rong></a>(...)</dt></dl> | |
254 | |
255 <dl><dt><a name="MemoryUnrecoverableException-__repr__"><strong>__repr__</strong
></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__repr__">__repr
__</a>() <==> repr(x)</tt></dd></dl> | |
256 | |
257 <dl><dt><a name="MemoryUnrecoverableException-__setattr__"><strong>__setattr__</
strong></a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__setattr_
_">__setattr__</a>('name', value) <==> x.name = v
alue</tt></dd></dl> | |
258 | |
259 <dl><dt><a name="MemoryUnrecoverableException-__setstate__"><strong>__setstate__
</strong></a>(...)</dt></dl> | |
260 | |
261 <dl><dt><a name="MemoryUnrecoverableException-__str__"><strong>__str__</strong><
/a>(...)</dt><dd><tt>x.<a href="#MemoryUnrecoverableException-__str__">__str__</
a>() <==> str(x)</tt></dd></dl> | |
262 | |
263 <dl><dt><a name="MemoryUnrecoverableException-__unicode__"><strong>__unicode__</
strong></a>(...)</dt></dl> | |
264 | |
265 <hr> | |
266 Data descriptors inherited from <a href="exceptions.html#BaseException">exceptio
ns.BaseException</a>:<br> | |
267 <dl><dt><strong>__dict__</strong></dt> | |
268 </dl> | |
269 <dl><dt><strong>args</strong></dt> | |
270 </dl> | |
271 <dl><dt><strong>message</strong></dt> | |
272 </dl> | |
273 </td></tr></table></td></tr></table> | |
274 </body></html> | |
OLD | NEW |