| Index: tools/telemetry/docs/pydoc/telemetry.web_perf.timeline_interaction_record.html
|
| diff --git a/tools/telemetry/docs/pydoc/telemetry.web_perf.timeline_interaction_record.html b/tools/telemetry/docs/pydoc/telemetry.web_perf.timeline_interaction_record.html
|
| deleted file mode 100644
|
| index 34a1639990bcd584e8981189081e40de855d5725..0000000000000000000000000000000000000000
|
| --- a/tools/telemetry/docs/pydoc/telemetry.web_perf.timeline_interaction_record.html
|
| +++ /dev/null
|
| @@ -1,317 +0,0 @@
|
| -
|
| -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
| -<html><head><title>Python: module telemetry.web_perf.timeline_interaction_record</title>
|
| -<meta charset="utf-8">
|
| -</head><body bgcolor="#f0f0f8">
|
| -
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
| -<tr bgcolor="#7799ee">
|
| -<td valign=bottom> <br>
|
| -<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.web_perf.html"><font color="#ffffff">web_perf</font></a>.timeline_interaction_record</strong></big></big></font></td
|
| -><td align=right valign=bottom
|
| -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/web_perf/timeline_interaction_record.py">telemetry/web_perf/timeline_interaction_record.py</a></font></td></tr></table>
|
| - <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br>
|
| -# Use of this source code is governed by a BSD-style license that can be<br>
|
| -# found in the LICENSE file.</tt></p>
|
| -<p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#aa55cc">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
| -
|
| -<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
| -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.decorators.html">telemetry.decorators</a><br>
|
| -</td><td width="25%" valign=top><a href="re.html">re</a><br>
|
| -</td><td width="25%" valign=top><a href="telemetry.timeline.bounds.html">telemetry.timeline.bounds</a><br>
|
| -</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#ee77aa">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
| -
|
| -<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
| -<td width="100%"><dl>
|
| -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
|
| -</font></dt><dd>
|
| -<dl>
|
| -<dt><font face="helvetica, arial"><a href="telemetry.web_perf.timeline_interaction_record.html#TimelineInteractionRecord">TimelineInteractionRecord</a>
|
| -</font></dt></dl>
|
| -</dd>
|
| -<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>)
|
| -</font></dt><dd>
|
| -<dl>
|
| -<dt><font face="helvetica, arial"><a href="telemetry.web_perf.timeline_interaction_record.html#ThreadTimeRangeOverlappedException">ThreadTimeRangeOverlappedException</a>
|
| -</font></dt><dd>
|
| -<dl>
|
| -<dt><font face="helvetica, arial"><a href="telemetry.web_perf.timeline_interaction_record.html#NoThreadTimeDataException">NoThreadTimeDataException</a>
|
| -</font></dt></dl>
|
| -</dd>
|
| -</dl>
|
| -</dd>
|
| -</dl>
|
| - <p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#ffc8d8">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#000000" face="helvetica, arial"><a name="NoThreadTimeDataException">class <strong>NoThreadTimeDataException</strong></a>(<a href="telemetry.web_perf.timeline_interaction_record.html#ThreadTimeRangeOverlappedException">ThreadTimeRangeOverlappedException</a>)</font></td></tr>
|
| -
|
| -<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
| -<td colspan=2><tt><a href="exceptions.html#Exception">Exception</a> that can be thrown if there is not sufficient thread time data<br>
|
| -to compute the overlapped thread time range.<br> </tt></td></tr>
|
| -<tr><td> </td>
|
| -<td width="100%"><dl><dt>Method resolution order:</dt>
|
| -<dd><a href="telemetry.web_perf.timeline_interaction_record.html#NoThreadTimeDataException">NoThreadTimeDataException</a></dd>
|
| -<dd><a href="telemetry.web_perf.timeline_interaction_record.html#ThreadTimeRangeOverlappedException">ThreadTimeRangeOverlappedException</a></dd>
|
| -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
| -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
| -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
| -</dl>
|
| -<hr>
|
| -Data descriptors inherited from <a href="telemetry.web_perf.timeline_interaction_record.html#ThreadTimeRangeOverlappedException">ThreadTimeRangeOverlappedException</a>:<br>
|
| -<dl><dt><strong>__weakref__</strong></dt>
|
| -<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
| -</dl>
|
| -<hr>
|
| -Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
| -<dl><dt><a name="NoThreadTimeDataException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
|
| -
|
| -<hr>
|
| -Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
| -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#NoThreadTimeDataException-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
| -
|
| -<hr>
|
| -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
| -<dl><dt><a name="NoThreadTimeDataException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
| - <br>
|
| -Use of negative indices is not supported.</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#NoThreadTimeDataException-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="NoThreadTimeDataException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
| -
|
| -<hr>
|
| -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
| -<dl><dt><strong>__dict__</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>args</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>message</strong></dt>
|
| -</dl>
|
| -</td></tr></table> <p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#ffc8d8">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#000000" face="helvetica, arial"><a name="ThreadTimeRangeOverlappedException">class <strong>ThreadTimeRangeOverlappedException</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
|
| -
|
| -<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
| -<td colspan=2><tt><a href="exceptions.html#Exception">Exception</a> that can be thrown when computing overlapped thread time range<br>
|
| -with other events.<br> </tt></td></tr>
|
| -<tr><td> </td>
|
| -<td width="100%"><dl><dt>Method resolution order:</dt>
|
| -<dd><a href="telemetry.web_perf.timeline_interaction_record.html#ThreadTimeRangeOverlappedException">ThreadTimeRangeOverlappedException</a></dd>
|
| -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
|
| -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd>
|
| -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
| -</dl>
|
| -<hr>
|
| -Data descriptors defined here:<br>
|
| -<dl><dt><strong>__weakref__</strong></dt>
|
| -<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
| -</dl>
|
| -<hr>
|
| -Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
|
| -
|
| -<hr>
|
| -Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
|
| -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#ThreadTimeRangeOverlappedException-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl>
|
| -
|
| -<hr>
|
| -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br>
|
| - <br>
|
| -Use of negative indices is not supported.</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#ThreadTimeRangeOverlappedException-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="ThreadTimeRangeOverlappedException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
|
| -
|
| -<hr>
|
| -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br>
|
| -<dl><dt><strong>__dict__</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>args</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>message</strong></dt>
|
| -</dl>
|
| -</td></tr></table> <p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#ffc8d8">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#000000" face="helvetica, arial"><a name="TimelineInteractionRecord">class <strong>TimelineInteractionRecord</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
| -
|
| -<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
| -<td colspan=2><tt>Represents an interaction that took place during a timeline recording.<br>
|
| - <br>
|
| -As a page runs, typically a number of different (simulated) user interactions<br>
|
| -take place. For instance, a user might click a button in a mail app causing a<br>
|
| -popup to animate in. Then they might press another button that sends data to a<br>
|
| -server and simultaneously closes the popup without an animation. These are two<br>
|
| -interactions.<br>
|
| - <br>
|
| -From the point of view of the page, each interaction might have a different<br>
|
| -label: ClickComposeButton and SendEmail, for instance. From the point<br>
|
| -of view of the benchmarking harness, the labels aren't so interesting as what<br>
|
| -the performance expectations are for that interaction: was it loading<br>
|
| -resources from the network? was there an animation?<br>
|
| - <br>
|
| -Determining these things is hard to do, simply by observing the state given to<br>
|
| -a page from javascript. There are hints, for instance if network requests are<br>
|
| -sent, or if a CSS animation is pending. But this is by no means a complete<br>
|
| -story.<br>
|
| - <br>
|
| -Instead, we expect pages to mark up the timeline what they are doing, with<br>
|
| -label and flags indicating the semantics of that interaction. This<br>
|
| -is currently done by pushing markers into the console.time/timeEnd API: this<br>
|
| -for instance can be issued in JS:<br>
|
| - <br>
|
| - var str = 'Interaction.SendEmail';<br>
|
| - console.time(str);<br>
|
| - setTimeout(function() {<br>
|
| - console.timeEnd(str);<br>
|
| - }, 1000);<br>
|
| - <br>
|
| -When run with perf.measurements.timeline_based_measurement running, this will<br>
|
| -then cause a <a href="#TimelineInteractionRecord">TimelineInteractionRecord</a> to be created for this range with<br>
|
| -all metrics reported for the marked up 1000ms time-range.<br>
|
| - <br>
|
| -The valid interaction flags are:<br>
|
| - * repeatable: Allows other interactions to use the same label<br> </tt></td></tr>
|
| -<tr><td> </td>
|
| -<td width="100%">Methods defined here:<br>
|
| -<dl><dt><a name="TimelineInteractionRecord-GetBounds"><strong>GetBounds</strong></a>(*args, **kwargs)</dt></dl>
|
| -
|
| -<dl><dt><a name="TimelineInteractionRecord-GetOverlappedThreadTimeForSlice"><strong>GetOverlappedThreadTimeForSlice</strong></a>(self, timeline_slice)</dt><dd><tt>Get the thread duration of timeline_slice that overlaps with this record.<br>
|
| - <br>
|
| -There are two cases :<br>
|
| - <br>
|
| -Case 1: timeline_slice runs in the same thread as the record.<br>
|
| - <br>
|
| - | [ timeline_slice ]<br>
|
| - THREAD 1 | | |<br>
|
| - | record starts record ends<br>
|
| - <br>
|
| - (relative order in thread time)<br>
|
| - <br>
|
| - As the thread timestamps in timeline_slice and record are consistent, we<br>
|
| - simply use them to compute the overlap.<br>
|
| - <br>
|
| -Case 2: timeline_slice runs in a different thread from the record's.<br>
|
| - <br>
|
| - |<br>
|
| - THREAD 2 | [ timeline_slice ]<br>
|
| - |<br>
|
| - <br>
|
| - |<br>
|
| - THREAD 1 | | |<br>
|
| - | record starts record ends<br>
|
| - <br>
|
| - (relative order in wall-time)<br>
|
| - <br>
|
| - Unlike case 1, thread timestamps of a thread are measured by its<br>
|
| - thread-specific clock, which is inconsistent with that of the other<br>
|
| - thread, and thus can't be used to compute the overlapped thread duration.<br>
|
| - Hence, we use a heuristic to compute the overlap (see<br>
|
| - _GetOverlappedThreadTimeForSliceInDifferentThread for more details)<br>
|
| - <br>
|
| -Args:<br>
|
| - timeline_slice: An instance of telemetry.timeline.slice.Slice</tt></dd></dl>
|
| -
|
| -<dl><dt><a name="TimelineInteractionRecord-__init__"><strong>__init__</strong></a>(self, label, start, end, async_event<font color="#909090">=None</font>, flags<font color="#909090">=None</font>)</dt></dl>
|
| -
|
| -<dl><dt><a name="TimelineInteractionRecord-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
| -
|
| -<hr>
|
| -Class methods defined here:<br>
|
| -<dl><dt><a name="TimelineInteractionRecord-FromAsyncEvent"><strong>FromAsyncEvent</strong></a>(cls, async_event)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Construct an timeline_interaction_record from an async event.<br>
|
| -Args:<br>
|
| - async_event: An instance of<br>
|
| - telemetry.timeline.async_slices.AsyncSlice</tt></dd></dl>
|
| -
|
| -<hr>
|
| -Data descriptors defined here:<br>
|
| -<dl><dt><strong>__dict__</strong></dt>
|
| -<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
| -</dl>
|
| -<dl><dt><strong>__weakref__</strong></dt>
|
| -<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
| -</dl>
|
| -<dl><dt><strong>end</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>label</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>repeatable</strong></dt>
|
| -</dl>
|
| -<dl><dt><strong>start</strong></dt>
|
| -</dl>
|
| -</td></tr></table></td></tr></table><p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#eeaa77">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
| -
|
| -<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
| -<td width="100%"><dl><dt><a name="-GetJavaScriptMarker"><strong>GetJavaScriptMarker</strong></a>(label, flags)</dt><dd><tt>Computes the marker string of an interaction record.<br>
|
| - <br>
|
| -This marker string can be used with JavaScript API console.time()<br>
|
| -and console.timeEnd() to mark the beginning and end of the<br>
|
| -interaction record..<br>
|
| - <br>
|
| -Args:<br>
|
| - label: The label used to identify the interaction record.<br>
|
| - flags: the flags for the interaction record see FLAGS above.<br>
|
| - <br>
|
| -Returns:<br>
|
| - The interaction record marker string (e.g., Interaction.Label/flag1,flag2).<br>
|
| - <br>
|
| -Raises:<br>
|
| - AssertionError: If one or more of the flags is unrecognized.</tt></dd></dl>
|
| - <dl><dt><a name="-IsTimelineInteractionRecord"><strong>IsTimelineInteractionRecord</strong></a>(event_name)</dt></dl>
|
| -</td></tr></table><p>
|
| -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
| -<tr bgcolor="#55aa55">
|
| -<td colspan=3 valign=bottom> <br>
|
| -<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
| -
|
| -<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
| -<td width="100%"><strong>FLAGS</strong> = ['repeatable']<br>
|
| -<strong>REPEATABLE</strong> = 'repeatable'</td></tr></table>
|
| -</body></html>
|
|
|