1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.util.process_statistic_timeline_data</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 href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.util.html"><font color="#ffffff">util</font></a>.process_statistic_timeline_data</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/util/process_statistic_timeline_data.py">telemetry/util/process_statistic_timeline_data.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="#ee77aa"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 21 22<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 23<td width="100%"><dl> 24<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 25</font></dt><dd> 26<dl> 27<dt><font face="helvetica, arial"><a href="telemetry.util.process_statistic_timeline_data.html#ProcessStatisticTimelineData">ProcessStatisticTimelineData</a> 28</font></dt><dd> 29<dl> 30<dt><font face="helvetica, arial"><a href="telemetry.util.process_statistic_timeline_data.html#IdleWakeupTimelineData">IdleWakeupTimelineData</a> 31</font></dt></dl> 32</dd> 33</dl> 34</dd> 35</dl> 36 <p> 37<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 38<tr bgcolor="#ffc8d8"> 39<td colspan=3 valign=bottom> <br> 40<font color="#000000" face="helvetica, arial"><a name="IdleWakeupTimelineData">class <strong>IdleWakeupTimelineData</strong></a>(<a href="telemetry.util.process_statistic_timeline_data.html#ProcessStatisticTimelineData">ProcessStatisticTimelineData</a>)</font></td></tr> 41 42<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 43<td colspan=2><tt>A <a href="#ProcessStatisticTimelineData">ProcessStatisticTimelineData</a> to hold idle wakeups.<br> </tt></td></tr> 44<tr><td> </td> 45<td width="100%"><dl><dt>Method resolution order:</dt> 46<dd><a href="telemetry.util.process_statistic_timeline_data.html#IdleWakeupTimelineData">IdleWakeupTimelineData</a></dd> 47<dd><a href="telemetry.util.process_statistic_timeline_data.html#ProcessStatisticTimelineData">ProcessStatisticTimelineData</a></dd> 48<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 49</dl> 50<hr> 51Methods inherited from <a href="telemetry.util.process_statistic_timeline_data.html#ProcessStatisticTimelineData">ProcessStatisticTimelineData</a>:<br> 52<dl><dt><a name="IdleWakeupTimelineData-__add__"><strong>__add__</strong></a>(self, other)</dt><dd><tt>The result contains pids from both |self| and |other|, if duplicate<br> 53pids are found between objects, an error will occur.</tt></dd></dl> 54 55<dl><dt><a name="IdleWakeupTimelineData-__init__"><strong>__init__</strong></a>(self, pid, value)</dt></dl> 56 57<dl><dt><a name="IdleWakeupTimelineData-__sub__"><strong>__sub__</strong></a>(self, other)</dt><dd><tt>The results of subtraction is an <a href="__builtin__.html#object">object</a> holding only the pids contained<br> 58in |self|.<br> 59 <br> 60The motivation is that some processes may have died between two consecutive<br> 61measurements. The desired behavior is to only make calculations based on<br> 62the processes that are alive at the end of the second measurement.</tt></dd></dl> 63 64<dl><dt><a name="IdleWakeupTimelineData-total_sum"><strong>total_sum</strong></a>(self)</dt><dd><tt>Returns the sum of all values contained by this <a href="__builtin__.html#object">object</a>.</tt></dd></dl> 65 66<hr> 67Data descriptors inherited from <a href="telemetry.util.process_statistic_timeline_data.html#ProcessStatisticTimelineData">ProcessStatisticTimelineData</a>:<br> 68<dl><dt><strong>__dict__</strong></dt> 69<dd><tt>dictionary for instance variables (if defined)</tt></dd> 70</dl> 71<dl><dt><strong>__weakref__</strong></dt> 72<dd><tt>list of weak references to the object (if defined)</tt></dd> 73</dl> 74<dl><dt><strong>value_by_pid</strong></dt> 75</dl> 76</td></tr></table> <p> 77<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 78<tr bgcolor="#ffc8d8"> 79<td colspan=3 valign=bottom> <br> 80<font color="#000000" face="helvetica, arial"><a name="ProcessStatisticTimelineData">class <strong>ProcessStatisticTimelineData</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 81 82<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 83<td colspan=2><tt>Holds value of a stat for one or more processes.<br> 84 <br> 85This <a href="__builtin__.html#object">object</a> can hold a value for more than one pid by adding another<br> 86<a href="__builtin__.html#object">object</a>.<br> </tt></td></tr> 87<tr><td> </td> 88<td width="100%">Methods defined here:<br> 89<dl><dt><a name="ProcessStatisticTimelineData-__add__"><strong>__add__</strong></a>(self, other)</dt><dd><tt>The result contains pids from both |self| and |other|, if duplicate<br> 90pids are found between objects, an error will occur.</tt></dd></dl> 91 92<dl><dt><a name="ProcessStatisticTimelineData-__init__"><strong>__init__</strong></a>(self, pid, value)</dt></dl> 93 94<dl><dt><a name="ProcessStatisticTimelineData-__sub__"><strong>__sub__</strong></a>(self, other)</dt><dd><tt>The results of subtraction is an <a href="__builtin__.html#object">object</a> holding only the pids contained<br> 95in |self|.<br> 96 <br> 97The motivation is that some processes may have died between two consecutive<br> 98measurements. The desired behavior is to only make calculations based on<br> 99the processes that are alive at the end of the second measurement.</tt></dd></dl> 100 101<dl><dt><a name="ProcessStatisticTimelineData-total_sum"><strong>total_sum</strong></a>(self)</dt><dd><tt>Returns the sum of all values contained by this <a href="__builtin__.html#object">object</a>.</tt></dd></dl> 102 103<hr> 104Data descriptors defined here:<br> 105<dl><dt><strong>__dict__</strong></dt> 106<dd><tt>dictionary for instance variables (if defined)</tt></dd> 107</dl> 108<dl><dt><strong>__weakref__</strong></dt> 109<dd><tt>list of weak references to the object (if defined)</tt></dd> 110</dl> 111<dl><dt><strong>value_by_pid</strong></dt> 112</dl> 113</td></tr></table></td></tr></table> 114</body></html>