1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.web_perf.metrics.mainthread_jank_stats</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.web_perf.html"><font color="#ffffff">web_perf</font></a>.<a href="telemetry.web_perf.metrics.html"><font color="#ffffff">metrics</font></a>.mainthread_jank_stats</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/web_perf/metrics/mainthread_jank_stats.py">telemetry/web_perf/metrics/mainthread_jank_stats.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.web_perf.metrics.mainthread_jank_stats.html#MainthreadJankStats">MainthreadJankStats</a> 28</font></dt></dl> 29</dd> 30</dl> 31 <p> 32<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 33<tr bgcolor="#ffc8d8"> 34<td colspan=3 valign=bottom> <br> 35<font color="#000000" face="helvetica, arial"><a name="MainthreadJankStats">class <strong>MainthreadJankStats</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 36 37<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 38<td colspan=2><tt>Utility class for extracting main thread jank statistics from the timeline<br> 39(or other loggin facilities), and providing them in a common format to<br> 40classes that compute benchmark metrics from this data.<br> 41 <br> 42 total_big_jank_thread_time is the total thread duration of all top<br> 43 slices whose thread time ranges overlapped with any thread time ranges of<br> 44 the records and the overlapped thread duration is greater than or equal<br> 45 USER_PERCEIVABLE_DELAY_THRESHOLD_MS.<br> 46 <br> 47 biggest_jank_thread_time is the biggest thread duration of all<br> 48 top slices whose thread time ranges overlapped with any of records' thread<br> 49 time ranges.<br> </tt></td></tr> 50<tr><td> </td> 51<td width="100%">Methods defined here:<br> 52<dl><dt><a name="MainthreadJankStats-__init__"><strong>__init__</strong></a>(self, renderer_thread, interaction_records)</dt></dl> 53 54<hr> 55Data descriptors defined here:<br> 56<dl><dt><strong>__dict__</strong></dt> 57<dd><tt>dictionary for instance variables (if defined)</tt></dd> 58</dl> 59<dl><dt><strong>__weakref__</strong></dt> 60<dd><tt>list of weak references to the object (if defined)</tt></dd> 61</dl> 62<dl><dt><strong>biggest_jank_thread_time</strong></dt> 63</dl> 64<dl><dt><strong>total_big_jank_thread_time</strong></dt> 65</dl> 66</td></tr></table></td></tr></table><p> 67<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 68<tr bgcolor="#55aa55"> 69<td colspan=3 valign=bottom> <br> 70<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 71 72<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> 73<td width="100%"><strong>USER_PERCEIVABLE_DELAY_THRESHOLD_MS</strong> = 50</td></tr></table> 74</body></html>