OLD | NEW |
1 | 1 |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
3 <html><head><title>Python: package telemetry.core.platform.profiler</title> | 3 <html><head><title>Python: package telemetry.core.platform.profiler</title> |
4 </head><body bgcolor="#f0f0f8"> | 4 </head><body bgcolor="#f0f0f8"> |
5 | 5 |
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
7 <tr bgcolor="#7799ee"> | 7 <tr bgcolor="#7799ee"> |
8 <td valign=bottom> <br> | 8 <td valign=bottom> <br> |
9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.platfo
rm.html"><font color="#ffffff">platform</font></a>.profiler</strong></big></big>
</font></td | 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.platfo
rm.html"><font color="#ffffff">platform</font></a>.profiler</strong></big></big>
</font></td |
10 ><td align=right valign=bottom | 10 ><td align=right valign=bottom |
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/platform/profiler/__init__.py">telemetry/core/platform/profil
er/__init__.py</a></font></td></tr></table> | 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/core/platform/profiler/__init__.py">telemetry/core/platform/profil
er/__init__.py</a></font></td></tr></table> |
12 <p><tt># Copyright (c) 2013 The Chromium Autho
rs. All rights reserved.<br> | 12 <p><tt># Copyright (c) 2013 The Chromium Autho
rs. All rights reserved.<br> |
13 # Use of this source code is governed by
a BSD-style license that can be<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> | 14 # found in the LICENSE file.</tt></p> |
15 <p> | 15 <p> |
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
17 <tr bgcolor="#aa55cc"> | 17 <tr bgcolor="#aa55cc"> |
18 <td colspan=3 valign=bottom> <br> | 18 <td colspan=3 valign=bottom> <br> |
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</str
ong></big></font></td></tr> | 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</str
ong></big></font></td></tr> |
20 | 20 |
21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> | 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.platform.profiler.iprofiler_profiler.html">iprofiler_
profiler</a><br> | 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.platform.profiler.android_memreport_profiler.html">an
droid_memreport_profiler</a><br> |
23 <a href="telemetry.core.platform.profiler.java_heap_profiler.html">java_heap_pro
filer</a><br> | 23 <a href="telemetry.core.platform.profiler.android_prebuilt_profiler_helper.html"
>android_prebuilt_profiler_helper</a><br> |
24 </td><td width="25%" valign=top><a href="telemetry.core.platform.profiler.perf_p
rofiler.html">perf_profiler</a><br> | 24 <a href="telemetry.core.platform.profiler.android_screen_recorder_profiler.html"
>android_screen_recorder_profiler</a><br> |
| 25 <a href="telemetry.core.platform.profiler.android_systrace_profiler.html">androi
d_systrace_profiler</a><br> |
| 26 <a href="telemetry.core.platform.profiler.android_traceview_profiler.html">andro
id_traceview_profiler</a><br> |
| 27 <a href="telemetry.core.platform.profiler.iprofiler_profiler.html">iprofiler_pro
filer</a><br> |
| 28 </td><td width="25%" valign=top><a href="telemetry.core.platform.profiler.java_h
eap_profiler.html">java_heap_profiler</a><br> |
| 29 <a href="telemetry.core.platform.profiler.monsoon.html">monsoon</a><br> |
| 30 <a href="telemetry.core.platform.profiler.monsoon_profiler.html">monsoon_profile
r</a><br> |
| 31 <a href="telemetry.core.platform.profiler.netlog_profiler.html">netlog_profiler<
/a><br> |
| 32 <a href="telemetry.core.platform.profiler.oomkiller_profiler.html">oomkiller_pro
filer</a><br> |
| 33 <a href="telemetry.core.platform.profiler.perf_profiler.html">perf_profiler</a><
br> |
| 34 </td><td width="25%" valign=top><a href="telemetry.core.platform.profiler.perf_p
rofiler_unittest.html">perf_profiler_unittest</a><br> |
25 <a href="telemetry.core.platform.profiler.profiler_finder.html">profiler_finder<
/a><br> | 35 <a href="telemetry.core.platform.profiler.profiler_finder.html">profiler_finder<
/a><br> |
26 </td><td width="25%" valign=top><a href="telemetry.core.platform.profiler.sample
_profiler.html">sample_profiler</a><br> | 36 <a href="telemetry.core.platform.profiler.sample_profiler.html">sample_profiler<
/a><br> |
| 37 <a href="telemetry.core.platform.profiler.strace_profiler.html">strace_profiler<
/a><br> |
27 <a href="telemetry.core.platform.profiler.tcmalloc_heap_profiler.html">tcmalloc_
heap_profiler</a><br> | 38 <a href="telemetry.core.platform.profiler.tcmalloc_heap_profiler.html">tcmalloc_
heap_profiler</a><br> |
| 39 <a href="telemetry.core.platform.profiler.tcpdump_profiler.html">tcpdump_profile
r</a><br> |
28 </td><td width="25%" valign=top><a href="telemetry.core.platform.profiler.trace_
profiler.html">trace_profiler</a><br> | 40 </td><td width="25%" valign=top><a href="telemetry.core.platform.profiler.trace_
profiler.html">trace_profiler</a><br> |
| 41 <a href="telemetry.core.platform.profiler.v8_profiler.html">v8_profiler</a><br> |
| 42 <a href="telemetry.core.platform.profiler.vtune_profiler.html">vtune_profiler</a
><br> |
29 </td></tr></table></td></tr></table><p> | 43 </td></tr></table></td></tr></table><p> |
30 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 44 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
31 <tr bgcolor="#ee77aa"> | 45 <tr bgcolor="#ee77aa"> |
32 <td colspan=3 valign=bottom> <br> | 46 <td colspan=3 valign=bottom> <br> |
33 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | 47 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> |
34 | 48 |
35 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | 49 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> |
36 <td width="100%"><dl> | 50 <td width="100%"><dl> |
37 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> | 51 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.
object</a> |
38 </font></dt><dd> | 52 </font></dt><dd> |
39 <dl> | 53 <dl> |
40 <dt><font face="helvetica, arial"><a href="telemetry.core.platform.profiler.html
#Profiler">Profiler</a> | 54 <dt><font face="helvetica, arial"><a href="telemetry.core.platform.profiler.html
#Profiler">Profiler</a> |
41 </font></dt></dl> | 55 </font></dt></dl> |
42 </dd> | 56 </dd> |
43 </dl> | 57 </dl> |
44 <p> | 58 <p> |
45 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 59 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
46 <tr bgcolor="#ffc8d8"> | 60 <tr bgcolor="#ffc8d8"> |
47 <td colspan=3 valign=bottom> <br> | 61 <td colspan=3 valign=bottom> <br> |
48 <font color="#000000" face="helvetica, arial"><a name="Profiler">class <strong>P
rofiler</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</
font></td></tr> | 62 <font color="#000000" face="helvetica, arial"><a name="Profiler">class <strong>P
rofiler</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</
font></td></tr> |
49 | 63 |
50 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | 64 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
51 <td colspan=2><tt>A sampling profiler provided by the&n
bsp;platform.<br> </tt></td></tr> | 65 <td colspan=2><tt>A sampling profiler provided by the&n
bsp;platform.<br> |
| 66 <br> |
| 67 A profiler is started on its constructor, and
should<br> |
| 68 gather data until <a href="#Profiler-CollectProfile">CollectProfi
le</a>().<br> |
| 69 The life cycle is normally tied to a sin
gle page,<br> |
| 70 i.e., multiple profilers will be created for
a page set.<br> |
| 71 <a href="#Profiler-WillCloseBrowser">WillCloseBrowser</a>() is called&
nbsp;right before the browser<br> |
| 72 is closed to allow any further cleanup.<br> <
/tt></td></tr> |
52 <tr><td> </td> | 73 <tr><td> </td> |
53 <td width="100%">Methods defined here:<br> | 74 <td width="100%">Methods defined here:<br> |
54 <dl><dt><a name="Profiler-CollectProfile"><strong>CollectProfile</strong></a>(se
lf)</dt><dd><tt>Collect the profile from the profiler.<
/tt></dd></dl> | 75 <dl><dt><a name="Profiler-CollectProfile"><strong>CollectProfile</strong></a>(se
lf)</dt><dd><tt>Collect the profile from the profiler.<
/tt></dd></dl> |
55 | 76 |
56 <dl><dt><a name="Profiler-__init__"><strong>__init__</strong></a>(self, browser_
backend, platform_backend, output_path)</dt></dl> | 77 <dl><dt><a name="Profiler-__init__"><strong>__init__</strong></a>(self, browser_
backend, platform_backend, output_path, state)</dt></dl> |
57 | 78 |
58 <hr> | 79 <hr> |
59 Class methods defined here:<br> | 80 Class methods defined here:<br> |
60 <dl><dt><a name="Profiler-is_supported"><strong>is_supported</strong></a>(cls, o
ptions)<font color="#909090"><font face="helvetica, arial"> from <a href="__buil
tin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>True iff&nb
sp;this profiler is currently supported by the&nbs
p;platform.</tt></dd></dl> | 81 <dl><dt><a name="Profiler-CustomizeBrowserOptions"><strong>CustomizeBrowserOptio
ns</strong></a>(cls, browser_type, options)<font color="#909090"><font face="hel
vetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font>
</font></dt><dd><tt>Override to customize the Browser's 
;options before it is created.</tt></dd></dl> |
| 82 |
| 83 <dl><dt><a name="Profiler-WillCloseBrowser"><strong>WillCloseBrowser</strong></a
>(cls, browser_backend, platform_backend)<font color="#909090"><font face="helve
tica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></
font></dt><dd><tt>Called before the browser is stopped.
</tt></dd></dl> |
| 84 |
| 85 <dl><dt><a name="Profiler-is_supported"><strong>is_supported</strong></a>(cls, b
rowser_type)<font color="#909090"><font face="helvetica, arial"> from <a href="_
_builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>True i
ff this profiler is currently supported by th
e platform.</tt></dd></dl> |
61 | 86 |
62 <dl><dt><a name="Profiler-name"><strong>name</strong></a>(cls)<font color="#9090
90"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builti
n__.type</a></font></font></dt><dd><tt>User-friendly name of this
profiler.</tt></dd></dl> | 87 <dl><dt><a name="Profiler-name"><strong>name</strong></a>(cls)<font color="#9090
90"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builti
n__.type</a></font></font></dt><dd><tt>User-friendly name of this
profiler.</tt></dd></dl> |
63 | 88 |
64 <hr> | 89 <hr> |
65 Data descriptors defined here:<br> | 90 Data descriptors defined here:<br> |
66 <dl><dt><strong>__dict__</strong></dt> | 91 <dl><dt><strong>__dict__</strong></dt> |
67 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> | 92 <dd><tt>dictionary for instance variables (if defined)<
/tt></dd> |
68 </dl> | 93 </dl> |
69 <dl><dt><strong>__weakref__</strong></dt> | 94 <dl><dt><strong>__weakref__</strong></dt> |
70 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> | 95 <dd><tt>list of weak references to the object 
;(if defined)</tt></dd> |
71 </dl> | 96 </dl> |
72 </td></tr></table></td></tr></table> | 97 </td></tr></table></td></tr></table> |
73 </body></html> | 98 </body></html> |
OLD | NEW |