Html程序  |  356行  |  51.05 KB

<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>lldb.formatters.metrics</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="lldb-module.html">Package&nbsp;lldb</a> ::
        <a href="lldb.formatters-module.html">Package&nbsp;formatters</a> ::
        Module&nbsp;metrics
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="lldb.formatters.metrics-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="lldb.formatters.metrics-module.html">Module lldb.formatters.metrics</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-docstring">Objective-C runtime wrapper for use by LLDB Python formatters</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-docstring">part of The LLVM Compiler Infrastructure</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">This file is distributed under the University of Illinois Open Source</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-docstring">License. See LICENSE.TXT for details.</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Package lldb=lldb-module.html"><a title="lldb" class="py-name" href="#" onclick="return doclink('link-0', 'lldb', 'link-0');">lldb</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt><tt class="py-op">,</tt> <tt class="py-name">datetime</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">inspect</tt> </tt>
<a name="TimeMetrics"></a><div id="TimeMetrics-def"><a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt> <a class="py-toggle" href="#" id="TimeMetrics-toggle" onclick="return toggle('TimeMetrics');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lldb.formatters.metrics.TimeMetrics-class.html">TimeMetrics</a><tt class="py-op">:</tt> </tt>
</div><div id="TimeMetrics-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="TimeMetrics-expanded"><a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">        <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="TimeMetrics.generate"></a><div id="TimeMetrics.generate-def"><a name="L14"></a><tt class="py-lineno">14</tt> <a class="py-toggle" href="#" id="TimeMetrics.generate-toggle" onclick="return toggle('TimeMetrics.generate');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.TimeMetrics-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">label</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TimeMetrics.generate-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="TimeMetrics.generate-expanded"><a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt id="link-1" class="py-name" targets="Class lldb.formatters.metrics.TimeMetrics=lldb.formatters.metrics.TimeMetrics-class.html"><a title="lldb.formatters.metrics.TimeMetrics" class="py-name" href="#" onclick="return doclink('link-1', 'TimeMetrics', 'link-1');">TimeMetrics</a></tt><tt class="py-op">(</tt><tt class="py-name">label</tt><tt class="py-op">)</tt> </tt>
</div><a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">         </tt>
<a name="TimeMetrics.__init__"></a><div id="TimeMetrics.__init__-def"><a name="L17"></a><tt class="py-lineno">17</tt> <a class="py-toggle" href="#" id="TimeMetrics.__init__-toggle" onclick="return toggle('TimeMetrics.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.TimeMetrics-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">lbl</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TimeMetrics.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="TimeMetrics.__init__-expanded"><a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">label</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> <tt class="py-keyword">if</tt> <tt class="py-name">lbl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">else</tt> <tt class="py-name">lbl</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line">                <tt class="py-keyword">pass</tt> </tt>
</div><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">         </tt>
<a name="TimeMetrics.__enter__"></a><div id="TimeMetrics.__enter__-def"><a name="L21"></a><tt class="py-lineno">21</tt> <a class="py-toggle" href="#" id="TimeMetrics.__enter__-toggle" onclick="return toggle('TimeMetrics.__enter__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.TimeMetrics-class.html#__enter__">__enter__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TimeMetrics.__enter__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="TimeMetrics.__enter__-expanded"><a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line">                <tt class="py-name">caller</tt> <tt class="py-op">=</tt> <tt class="py-name">inspect</tt><tt class="py-op">.</tt><tt class="py-name">stack</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Variable lldb.SBAddress.function=lldb.SBAddress-class.html#function,Variable lldb.SBFrame.function=lldb.SBFrame-class.html#function,Variable lldb.SBSymbolContext.function=lldb.SBSymbolContext-class.html#function"><a title="lldb.SBAddress.function
lldb.SBFrame.function
lldb.SBSymbolContext.function" class="py-name" href="#" onclick="return doclink('link-2', 'function', 'link-2');">function</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">caller</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">enter_time</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">         </tt>
<a name="TimeMetrics.__exit__"></a><div id="TimeMetrics.__exit__-def"><a name="L26"></a><tt class="py-lineno">26</tt> <a class="py-toggle" href="#" id="TimeMetrics.__exit__-toggle" onclick="return toggle('TimeMetrics.__exit__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.TimeMetrics-class.html#__exit__">__exit__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">a</tt><tt class="py-op">,</tt><tt class="py-param">b</tt><tt class="py-op">,</tt><tt class="py-param">c</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TimeMetrics.__exit__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="TimeMetrics.__exit__-expanded"><a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">exit_time</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">clock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"It took "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">exit_time</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">enter_time</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">" time units to run through "</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="lldb.SBAddress.function
lldb.SBFrame.function
lldb.SBSymbolContext.function" class="py-name" href="#" onclick="return doclink('link-3', 'function', 'link-2');">function</a></tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">label</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div></div><a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"> </tt>
<a name="Counter"></a><div id="Counter-def"><a name="L31"></a><tt class="py-lineno">31</tt> <a class="py-toggle" href="#" id="Counter-toggle" onclick="return toggle('Counter');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lldb.formatters.metrics.Counter-class.html">Counter</a><tt class="py-op">:</tt> </tt>
</div><div id="Counter-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Counter-expanded"><a name="Counter.__init__"></a><div id="Counter.__init__-def"><a name="L32"></a><tt class="py-lineno">32</tt> <a class="py-toggle" href="#" id="Counter.__init__-toggle" onclick="return toggle('Counter.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Counter-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Counter.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Counter.__init__-expanded"><a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Variable lldb.SBTypeFilter.count=lldb.SBTypeFilter-class.html#count"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-4', 'count', 'link-4');">count</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">list</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
</div><a name="Counter.update"></a><div id="Counter.update-def"><a name="L35"></a><tt class="py-lineno">35</tt> <a class="py-toggle" href="#" id="Counter.update-toggle" onclick="return toggle('Counter.update');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Counter-class.html#update">update</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Counter.update-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Counter.update-expanded"><a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-5', 'count', 'link-4');">count</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-6', 'count', 'link-4');">count</a></tt> <tt class="py-op">+</tt> <tt class="py-number">1</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">                <tt class="py-comment"># avoid getting the full dump of this ValueObject just to save its metrics</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-7" class="py-name" targets="Variable lldb.SBBlock.name=lldb.SBBlock-class.html#name,Variable lldb.SBFrame.name=lldb.SBFrame-class.html#name,Variable lldb.SBFunction.name=lldb.SBFunction-class.html#name,Variable lldb.SBSection.name=lldb.SBSection-class.html#name,Variable lldb.SBSymbol.name=lldb.SBSymbol-class.html#name,Variable lldb.SBThread.name=lldb.SBThread-class.html#name,Variable lldb.SBType.name=lldb.SBType-class.html#name,Variable lldb.SBTypeCategory.name=lldb.SBTypeCategory-class.html#name,Variable lldb.SBTypeMember.name=lldb.SBTypeMember-class.html#name,Variable lldb.SBTypeNameSpecifier.name=lldb.SBTypeNameSpecifier-class.html#name,Variable lldb.SBValue.name=lldb.SBValue-class.html#name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-7', 'name', 'link-7');">name</a></tt><tt class="py-op">,</tt><tt id="link-8" class="py-name"><a title="lldb" class="py-name" href="#" onclick="return doclink('link-8', 'lldb', 'link-0');">lldb</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Class lldb.SBValue=lldb.SBValue-class.html"><a title="lldb.SBValue" class="py-name" href="#" onclick="return doclink('link-9', 'SBValue', 'link-9');">SBValue</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">list</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-10" class="py-name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-10', 'name', 'link-7');">name</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method lldb.SBBroadcaster.GetName()=lldb.SBBroadcaster-class.html#GetName,Method lldb.SBFunction.GetName()=lldb.SBFunction-class.html#GetName,Method lldb.SBSection.GetName()=lldb.SBSection-class.html#GetName,Method lldb.SBSymbol.GetName()=lldb.SBSymbol-class.html#GetName,Method lldb.SBThread.GetName()=lldb.SBThread-class.html#GetName,Method lldb.SBType.GetName()=lldb.SBType-class.html#GetName,Method lldb.SBTypeCategory.GetName()=lldb.SBTypeCategory-class.html#GetName,Method lldb.SBTypeMember.GetName()=lldb.SBTypeMember-class.html#GetName,Method lldb.SBTypeNameSpecifier.GetName()=lldb.SBTypeNameSpecifier-class.html#GetName,Method lldb.SBValue.GetName()=lldb.SBValue-class.html#GetName"><a title="lldb.SBBroadcaster.GetName
lldb.SBFunction.GetName
lldb.SBSection.GetName
lldb.SBSymbol.GetName
lldb.SBThread.GetName
lldb.SBType.GetName
lldb.SBTypeCategory.GetName
lldb.SBTypeMember.GetName
lldb.SBTypeNameSpecifier.GetName
lldb.SBValue.GetName" class="py-name" href="#" onclick="return doclink('link-11', 'GetName', 'link-11');">GetName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">list</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-12" class="py-name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-12', 'name', 'link-7');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Counter.__str__"></a><div id="Counter.__str__-def"><a name="L42"></a><tt class="py-lineno">42</tt> <a class="py-toggle" href="#" id="Counter.__str__-toggle" onclick="return toggle('Counter.__str__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Counter-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Counter.__str__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Counter.__str__-expanded"><a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-13', 'count', 'link-4');">count</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">" times, for items ["</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">list</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"]"</tt> </tt>
</div></div><a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"> </tt>
<a name="MetricsPrinter_Verbose"></a><div id="MetricsPrinter_Verbose-def"><a name="L45"></a><tt class="py-lineno">45</tt> <a class="py-toggle" href="#" id="MetricsPrinter_Verbose-toggle" onclick="return toggle('MetricsPrinter_Verbose');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lldb.formatters.metrics.MetricsPrinter_Verbose-class.html">MetricsPrinter_Verbose</a><tt class="py-op">:</tt> </tt>
</div><div id="MetricsPrinter_Verbose-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="MetricsPrinter_Verbose-expanded"><a name="MetricsPrinter_Verbose.__init__"></a><div id="MetricsPrinter_Verbose.__init__-def"><a name="L46"></a><tt class="py-lineno">46</tt> <a class="py-toggle" href="#" id="MetricsPrinter_Verbose.__init__-toggle" onclick="return toggle('MetricsPrinter_Verbose.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.MetricsPrinter_Verbose-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">metrics</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MetricsPrinter_Verbose.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="MetricsPrinter_Verbose.__init__-expanded"><a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Module lldb.formatters.metrics=lldb.formatters.metrics-module.html"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-14', 'metrics', 'link-14');">metrics</a></tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-15', 'metrics', 'link-14');">metrics</a></tt> </tt>
</div><a name="MetricsPrinter_Verbose.__str__"></a><div id="MetricsPrinter_Verbose.__str__-def"><a name="L48"></a><tt class="py-lineno">48</tt> <a class="py-toggle" href="#" id="MetricsPrinter_Verbose.__str__-toggle" onclick="return toggle('MetricsPrinter_Verbose.__str__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.MetricsPrinter_Verbose-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MetricsPrinter_Verbose.__str__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="MetricsPrinter_Verbose.__str__-expanded"><a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line">                <tt class="py-name">string</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt><tt id="link-16" class="py-name" targets="Variable lldb.SBError.value=lldb.SBError-class.html#value,Variable lldb.SBValue.value=lldb.SBValue-class.html#value,Method lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value()=lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider-class.html#value,Method lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value()=lldb.formatters.cpp.libcxx.stdlist_SynthProvider-class.html#value,Variable lldb.formatters.cpp.libcxx.stdlist_entry.value=lldb.formatters.cpp.libcxx.stdlist_entry-class.html#value,Method lldb.formatters.cpp.libcxx.stdlist_iterator.value()=lldb.formatters.cpp.libcxx.stdlist_iterator-class.html#value,Method lldb.formatters.cpp.libcxx.stdmap_iterator.value()=lldb.formatters.cpp.libcxx.stdmap_iterator-class.html#value,Variable lldb.formatters.cpp.libcxx.stdmap_iterator_node.value=lldb.formatters.cpp.libcxx.stdmap_iterator_node-class.html#value,Class lldb.value=lldb.value-class.html"><a title="lldb.SBError.value
lldb.SBValue.value
lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_entry.value
lldb.formatters.cpp.libcxx.stdlist_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
lldb.value" class="py-name" href="#" onclick="return doclink('link-16', 'value', 'link-16');">value</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-17', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-18', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">                        <tt class="py-name">string</tt> <tt class="py-op">=</tt> <tt class="py-name">string</tt> <tt class="py-op">+</tt> <tt class="py-string">"metric "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">": "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-19" class="py-name"><a title="lldb.SBError.value
lldb.SBValue.value
lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_entry.value
lldb.formatters.cpp.libcxx.stdlist_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
lldb.value" class="py-name" href="#" onclick="return doclink('link-19', 'value', 'link-16');">value</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">string</tt> </tt>
</div></div><a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line"> </tt>
<a name="MetricsPrinter_Compact"></a><div id="MetricsPrinter_Compact-def"><a name="L54"></a><tt class="py-lineno">54</tt> <a class="py-toggle" href="#" id="MetricsPrinter_Compact-toggle" onclick="return toggle('MetricsPrinter_Compact');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lldb.formatters.metrics.MetricsPrinter_Compact-class.html">MetricsPrinter_Compact</a><tt class="py-op">:</tt> </tt>
</div><div id="MetricsPrinter_Compact-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="MetricsPrinter_Compact-expanded"><a name="MetricsPrinter_Compact.__init__"></a><div id="MetricsPrinter_Compact.__init__-def"><a name="L55"></a><tt class="py-lineno">55</tt> <a class="py-toggle" href="#" id="MetricsPrinter_Compact.__init__-toggle" onclick="return toggle('MetricsPrinter_Compact.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.MetricsPrinter_Compact-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">metrics</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MetricsPrinter_Compact.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="MetricsPrinter_Compact.__init__-expanded"><a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-20', 'metrics', 'link-14');">metrics</a></tt> <tt class="py-op">=</tt> <tt id="link-21" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-21', 'metrics', 'link-14');">metrics</a></tt> </tt>
</div><a name="MetricsPrinter_Compact.__str__"></a><div id="MetricsPrinter_Compact.__str__-def"><a name="L57"></a><tt class="py-lineno">57</tt> <a class="py-toggle" href="#" id="MetricsPrinter_Compact.__str__-toggle" onclick="return toggle('MetricsPrinter_Compact.__str__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.MetricsPrinter_Compact-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MetricsPrinter_Compact.__str__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="MetricsPrinter_Compact.__str__-expanded"><a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line">                <tt class="py-name">string</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt><tt id="link-22" class="py-name"><a title="lldb.SBError.value
lldb.SBValue.value
lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_entry.value
lldb.formatters.cpp.libcxx.stdlist_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
lldb.value" class="py-name" href="#" onclick="return doclink('link-22', 'value', 'link-16');">value</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-23', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-24', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">                        <tt class="py-name">string</tt> <tt class="py-op">=</tt> <tt class="py-name">string</tt> <tt class="py-op">+</tt> <tt class="py-string">"metric "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">" was hit "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="lldb.SBError.value
lldb.SBValue.value
lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_entry.value
lldb.formatters.cpp.libcxx.stdlist_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
lldb.value" class="py-name" href="#" onclick="return doclink('link-25', 'value', 'link-16');">value</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-26', 'count', 'link-4');">count</a></tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">" times\n"</tt> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">string</tt> </tt>
</div></div><a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"> </tt>
<a name="Metrics"></a><div id="Metrics-def"><a name="L63"></a><tt class="py-lineno">63</tt> <a class="py-toggle" href="#" id="Metrics-toggle" onclick="return toggle('Metrics');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html">Metrics</a><tt class="py-op">:</tt> </tt>
</div><div id="Metrics-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Metrics-expanded"><a name="Metrics.__init__"></a><div id="Metrics.__init__-def"><a name="L64"></a><tt class="py-lineno">64</tt> <a class="py-toggle" href="#" id="Metrics.__init__-toggle" onclick="return toggle('Metrics.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.__init__-expanded"><a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-27', 'metrics', 'link-14');">metrics</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
</div><a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"> </tt>
<a name="Metrics.add_metric"></a><div id="Metrics.add_metric-def"><a name="L67"></a><tt class="py-lineno">67</tt> <a class="py-toggle" href="#" id="Metrics.add_metric-toggle" onclick="return toggle('Metrics.add_metric');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#add_metric">add_metric</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.add_metric-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.add_metric-expanded"><a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-28', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">[</tt><tt id="link-29" class="py-name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-29', 'name', 'link-7');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-30" class="py-name" targets="Class lldb.formatters.metrics.Counter=lldb.formatters.metrics.Counter-class.html"><a title="lldb.formatters.metrics.Counter" class="py-name" href="#" onclick="return doclink('link-30', 'Counter', 'link-30');">Counter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line"> </tt>
<a name="Metrics.metric_hit"></a><div id="Metrics.metric_hit-def"><a name="L70"></a><tt class="py-lineno">70</tt> <a class="py-toggle" href="#" id="Metrics.metric_hit-toggle" onclick="return toggle('Metrics.metric_hit');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#metric_hit">metric_hit</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">metric</tt><tt class="py-op">,</tt><tt class="py-param">trigger</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.metric_hit-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.metric_hit-expanded"><a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-31', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">[</tt><tt class="py-name">metric</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name" targets="Method lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.update()=lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider-class.html#update,Method lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider.update()=lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider-class.html#update,Method lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider.update()=lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider-class.html#update,Method lldb.formatters.cpp.libcxx.stddeque_SynthProvider.update()=lldb.formatters.cpp.libcxx.stddeque_SynthProvider-class.html#update,Method lldb.formatters.cpp.libcxx.stdlist_SynthProvider.update()=lldb.formatters.cpp.libcxx.stdlist_SynthProvider-class.html#update,Method lldb.formatters.cpp.libcxx.stdmap_SynthProvider.update()=lldb.formatters.cpp.libcxx.stdmap_SynthProvider-class.html#update,Method lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider.update()=lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider-class.html#update,Method lldb.formatters.cpp.libcxx.stdvector_SynthProvider.update()=lldb.formatters.cpp.libcxx.stdvector_SynthProvider-class.html#update,Method lldb.formatters.metrics.Counter.update()=lldb.formatters.metrics.Counter-class.html#update"><a title="lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.update
lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider.update
lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider.update
lldb.formatters.cpp.libcxx.stddeque_SynthProvider.update
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.update
lldb.formatters.cpp.libcxx.stdmap_SynthProvider.update
lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider.update
lldb.formatters.cpp.libcxx.stdvector_SynthProvider.update
lldb.formatters.metrics.Counter.update" class="py-name" href="#" onclick="return doclink('link-32', 'update', 'link-32');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">trigger</tt><tt class="py-op">)</tt> </tt>
</div><a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line"> </tt>
<a name="Metrics.__getitem__"></a><div id="Metrics.__getitem__-def"><a name="L73"></a><tt class="py-lineno">73</tt> <a class="py-toggle" href="#" id="Metrics.__getitem__-toggle" onclick="return toggle('Metrics.__getitem__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#__getitem__">__getitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.__getitem__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.__getitem__-expanded"><a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-33', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
</div><a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line"> </tt>
<a name="Metrics.__getattr__"></a><div id="Metrics.__getattr__-def"><a name="L76"></a><tt class="py-lineno">76</tt> <a class="py-toggle" href="#" id="Metrics.__getattr__-toggle" onclick="return toggle('Metrics.__getattr__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#__getattr__">__getattr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.__getattr__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.__getattr__-expanded"><a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-34" class="py-name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-34', 'name', 'link-7');">name</a></tt> <tt class="py-op">==</tt> <tt class="py-string">'compact'</tt><tt class="py-op">:</tt> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt id="link-35" class="py-name" targets="Class lldb.formatters.metrics.MetricsPrinter_Compact=lldb.formatters.metrics.MetricsPrinter_Compact-class.html"><a title="lldb.formatters.metrics.MetricsPrinter_Compact" class="py-name" href="#" onclick="return doclink('link-35', 'MetricsPrinter_Compact', 'link-35');">MetricsPrinter_Compact</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-36" class="py-name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-36', 'name', 'link-7');">name</a></tt> <tt class="py-op">==</tt> <tt class="py-string">'verbose'</tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno">80</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt id="link-37" class="py-name" targets="Class lldb.formatters.metrics.MetricsPrinter_Verbose=lldb.formatters.metrics.MetricsPrinter_Verbose-class.html"><a title="lldb.formatters.metrics.MetricsPrinter_Verbose" class="py-name" href="#" onclick="return doclink('link-37', 'MetricsPrinter_Verbose', 'link-37');">MetricsPrinter_Verbose</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno">81</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">(</tt><tt class="py-string">"%r object has no attribute %r"</tt> <tt class="py-op">%</tt> </tt>
<a name="L82"></a><tt class="py-lineno">82</tt>  <tt class="py-line">                                                 <tt class="py-op">(</tt><tt id="link-38" class="py-name" targets="Variable lldb.SBError.type=lldb.SBError-class.html#type,Variable lldb.SBFunction.type=lldb.SBFunction-class.html#type,Variable lldb.SBSection.type=lldb.SBSection-class.html#type,Variable lldb.SBSymbol.type=lldb.SBSymbol-class.html#type,Variable lldb.SBType.type=lldb.SBType-class.html#type,Variable lldb.SBTypeMember.type=lldb.SBTypeMember-class.html#type,Variable lldb.SBValue.type=lldb.SBValue-class.html#type"><a title="lldb.SBError.type
lldb.SBFunction.type
lldb.SBSection.type
lldb.SBSymbol.type
lldb.SBType.type
lldb.SBTypeMember.type
lldb.SBValue.type" class="py-name" href="#" onclick="return doclink('link-38', 'type', 'link-38');">type</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">,</tt> <tt id="link-39" class="py-name"><a title="lldb.SBBlock.name
lldb.SBFrame.name
lldb.SBFunction.name
lldb.SBSection.name
lldb.SBSymbol.name
lldb.SBThread.name
lldb.SBType.name
lldb.SBTypeCategory.name
lldb.SBTypeMember.name
lldb.SBTypeNameSpecifier.name
lldb.SBValue.name" class="py-name" href="#" onclick="return doclink('link-39', 'name', 'link-7');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line"> </tt>
<a name="Metrics.__str__"></a><div id="Metrics.__str__-def"><a name="L84"></a><tt class="py-lineno">84</tt> <a class="py-toggle" href="#" id="Metrics.__str__-toggle" onclick="return toggle('Metrics.__str__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.__str__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.__str__-expanded"><a name="L85"></a><tt class="py-lineno">85</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">verbose</tt><tt class="py-op">)</tt> </tt>
</div><a name="L86"></a><tt class="py-lineno">86</tt>  <tt class="py-line"> </tt>
<a name="Metrics.metric_success"></a><div id="Metrics.metric_success-def"><a name="L87"></a><tt class="py-lineno">87</tt> <a class="py-toggle" href="#" id="Metrics.metric_success-toggle" onclick="return toggle('Metrics.metric_success');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.metrics.Metrics-class.html#metric_success">metric_success</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">metric</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Metrics.metric_success-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="Metrics.metric_success-expanded"><a name="L88"></a><tt class="py-lineno">88</tt>  <tt class="py-line">                <tt class="py-name">total_count</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L89"></a><tt class="py-lineno">89</tt>  <tt class="py-line">                <tt class="py-name">metric_count</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-name">metric</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-40', 'count', 'link-4');">count</a></tt> </tt>
<a name="L90"></a><tt class="py-lineno">90</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt><tt id="link-41" class="py-name"><a title="lldb.SBError.value
lldb.SBValue.value
lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_entry.value
lldb.formatters.cpp.libcxx.stdlist_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
lldb.value" class="py-name" href="#" onclick="return doclink('link-41', 'value', 'link-16');">value</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="lldb.formatters.metrics" class="py-name" href="#" onclick="return doclink('link-42', 'metrics', 'link-14');">metrics</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L91"></a><tt class="py-lineno">91</tt>  <tt class="py-line">                        <tt class="py-name">total_count</tt> <tt class="py-op">=</tt> <tt class="py-name">total_count</tt> <tt class="py-op">+</tt> <tt id="link-43" class="py-name"><a title="lldb.SBError.value
lldb.SBValue.value
lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
lldb.formatters.cpp.libcxx.stdlist_entry.value
lldb.formatters.cpp.libcxx.stdlist_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator.value
lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
lldb.value" class="py-name" href="#" onclick="return doclink('link-43', 'value', 'link-16');">value</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="lldb.SBTypeFilter.count" class="py-name" href="#" onclick="return doclink('link-44', 'count', 'link-4');">count</a></tt> </tt>
<a name="L92"></a><tt class="py-lineno">92</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">total_count</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L93"></a><tt class="py-lineno">93</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt class="py-name">metric_count</tt> <tt class="py-op">/</tt> <tt id="link-45" class="py-name" targets="Variable lldb.SBData.float=lldb.SBData-class.html#float"><a title="lldb.SBData.float" class="py-name" href="#" onclick="return doclink('link-45', 'float', 'link-45');">float</a></tt><tt class="py-op">(</tt><tt class="py-name">total_count</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno">94</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-number">0</tt> </tt>
</div></div><a name="L95"></a><tt class="py-lineno">95</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:38 2013
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>