1<?xml version="1.0" encoding="ascii"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3          "DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6  <title>lldb.formatters.metrics</title>
7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
8  <script type="text/javascript" src="epydoc.js"></script>
9</head>
10
11<body bgcolor="white" text="black" link="blue" vlink="#204080"
12      alink="#204080">
13<!-- ==================== NAVIGATION BAR ==================== -->
14<table class="navbar" border="0" width="100%" cellpadding="0"
15       bgcolor="#a0c0ff" cellspacing="0">
16  <tr valign="middle">
17
18  <!-- Tree link -->
19      <th>&nbsp;&nbsp;&nbsp;<a
20        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
21
22  <!-- Index link -->
23      <th>&nbsp;&nbsp;&nbsp;<a
24        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
25
26  <!-- Help link -->
27      <th>&nbsp;&nbsp;&nbsp;<a
28        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
29
30  <!-- Project homepage -->
31      <th class="navbar" align="right" width="100%">
32        <table border="0" cellpadding="0" cellspacing="0">
33          <tr><th class="navbar" align="center"
34            ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th>
35          </tr></table></th>
36  </tr>
37</table>
38<table width="100%" cellpadding="0" cellspacing="0">
39  <tr valign="top">
40    <td width="100%">
41      <span class="breadcrumbs">
42        <a href="lldb-module.html">Package&nbsp;lldb</a> ::
43        <a href="lldb.formatters-module.html">Package&nbsp;formatters</a> ::
44        Module&nbsp;metrics
45      </span>
46    </td>
47    <td>
48      <table cellpadding="0" cellspacing="0">
49        <!-- hide/show private -->
50        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
51    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
52        <tr><td align="right"><span class="options"
53            >[<a href="frames.html" target="_top">frames</a
54            >]&nbsp;|&nbsp;<a href="lldb.formatters.metrics-pysrc.html"
55            target="_top">no&nbsp;frames</a>]</span></td></tr>
56      </table>
57    </td>
58  </tr>
59</table>
60<h1 class="epydoc">Source Code for <a href="lldb.formatters.metrics-module.html">Module lldb.formatters.metrics</a></h1>
61<pre class="py-src">
62<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
63<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>
64<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
65<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>
66<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>
67<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>
68<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
69<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>
70<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>
71<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>
72<a name="TimeMetrics"></a><div id="TimeMetrics-def"><a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"> </tt>
73<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>
74</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>
75<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>
76</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>
77</div><a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">         </tt>
78<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>
79</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>
80<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line">                <tt class="py-keyword">pass</tt> </tt>
81</div><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">         </tt>
82<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>
83</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>
84<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
85lldb.SBFrame.function
86lldb.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>
87<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>
88</div><a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">         </tt>
89<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>
90</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>
91<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
92lldb.SBFrame.function
93lldb.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>
94<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>
95</div></div><a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"> </tt>
96<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>
97</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>
98</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>
99<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>
100</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>
101</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>
102<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>
103<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
104lldb.SBFrame.name
105lldb.SBFunction.name
106lldb.SBSection.name
107lldb.SBSymbol.name
108lldb.SBThread.name
109lldb.SBType.name
110lldb.SBTypeCategory.name
111lldb.SBTypeMember.name
112lldb.SBTypeNameSpecifier.name
113lldb.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>
114<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
115lldb.SBFrame.name
116lldb.SBFunction.name
117lldb.SBSection.name
118lldb.SBSymbol.name
119lldb.SBThread.name
120lldb.SBType.name
121lldb.SBTypeCategory.name
122lldb.SBTypeMember.name
123lldb.SBTypeNameSpecifier.name
124lldb.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
125lldb.SBFunction.GetName
126lldb.SBSection.GetName
127lldb.SBSymbol.GetName
128lldb.SBThread.GetName
129lldb.SBType.GetName
130lldb.SBTypeCategory.GetName
131lldb.SBTypeMember.GetName
132lldb.SBTypeNameSpecifier.GetName
133lldb.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>
134<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>
135<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
136lldb.SBFrame.name
137lldb.SBFunction.name
138lldb.SBSection.name
139lldb.SBSymbol.name
140lldb.SBThread.name
141lldb.SBType.name
142lldb.SBTypeCategory.name
143lldb.SBTypeMember.name
144lldb.SBTypeNameSpecifier.name
145lldb.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>
146</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>
147</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>
148</div></div><a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"> </tt>
149<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>
150</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>
151</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>
152</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>
153</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>
154<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
155lldb.SBValue.value
156lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
157lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
158lldb.formatters.cpp.libcxx.stdlist_entry.value
159lldb.formatters.cpp.libcxx.stdlist_iterator.value
160lldb.formatters.cpp.libcxx.stdmap_iterator.value
161lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
162lldb.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>
163<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
164lldb.SBValue.value
165lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
166lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
167lldb.formatters.cpp.libcxx.stdlist_entry.value
168lldb.formatters.cpp.libcxx.stdlist_iterator.value
169lldb.formatters.cpp.libcxx.stdmap_iterator.value
170lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
171lldb.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>
172<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>
173</div></div><a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line"> </tt>
174<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>
175</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>
176</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>
177</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>
178</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>
179<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
180lldb.SBValue.value
181lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
182lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
183lldb.formatters.cpp.libcxx.stdlist_entry.value
184lldb.formatters.cpp.libcxx.stdlist_iterator.value
185lldb.formatters.cpp.libcxx.stdmap_iterator.value
186lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
187lldb.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>
188<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
189lldb.SBValue.value
190lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
191lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
192lldb.formatters.cpp.libcxx.stdlist_entry.value
193lldb.formatters.cpp.libcxx.stdlist_iterator.value
194lldb.formatters.cpp.libcxx.stdmap_iterator.value
195lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
196lldb.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>
197<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>
198</div></div><a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"> </tt>
199<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>
200</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>
201</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>
202</div><a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"> </tt>
203<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>
204</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
205lldb.SBFrame.name
206lldb.SBFunction.name
207lldb.SBSection.name
208lldb.SBSymbol.name
209lldb.SBThread.name
210lldb.SBType.name
211lldb.SBTypeCategory.name
212lldb.SBTypeMember.name
213lldb.SBTypeNameSpecifier.name
214lldb.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>
215</div><a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line"> </tt>
216<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>
217</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
218lldb.formatters.cpp.gnu_libstdcpp.StdMapSynthProvider.update
219lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider.update
220lldb.formatters.cpp.libcxx.stddeque_SynthProvider.update
221lldb.formatters.cpp.libcxx.stdlist_SynthProvider.update
222lldb.formatters.cpp.libcxx.stdmap_SynthProvider.update
223lldb.formatters.cpp.libcxx.stdsharedptr_SynthProvider.update
224lldb.formatters.cpp.libcxx.stdvector_SynthProvider.update
225lldb.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>
226</div><a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line"> </tt>
227<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>
228</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>
229</div><a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line"> </tt>
230<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>
231</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
232lldb.SBFrame.name
233lldb.SBFunction.name
234lldb.SBSection.name
235lldb.SBSymbol.name
236lldb.SBThread.name
237lldb.SBType.name
238lldb.SBTypeCategory.name
239lldb.SBTypeMember.name
240lldb.SBTypeNameSpecifier.name
241lldb.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>
242<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>
243<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
244lldb.SBFrame.name
245lldb.SBFunction.name
246lldb.SBSection.name
247lldb.SBSymbol.name
248lldb.SBThread.name
249lldb.SBType.name
250lldb.SBTypeCategory.name
251lldb.SBTypeMember.name
252lldb.SBTypeNameSpecifier.name
253lldb.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>
254<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>
255<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>
256<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
257lldb.SBFunction.type
258lldb.SBSection.type
259lldb.SBSymbol.type
260lldb.SBType.type
261lldb.SBTypeMember.type
262lldb.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
263lldb.SBFrame.name
264lldb.SBFunction.name
265lldb.SBSection.name
266lldb.SBSymbol.name
267lldb.SBThread.name
268lldb.SBType.name
269lldb.SBTypeCategory.name
270lldb.SBTypeMember.name
271lldb.SBTypeNameSpecifier.name
272lldb.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>
273</div><a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line"> </tt>
274<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>
275</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>
276</div><a name="L86"></a><tt class="py-lineno">86</tt>  <tt class="py-line"> </tt>
277<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>
278</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>
279<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>
280<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
281lldb.SBValue.value
282lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
283lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
284lldb.formatters.cpp.libcxx.stdlist_entry.value
285lldb.formatters.cpp.libcxx.stdlist_iterator.value
286lldb.formatters.cpp.libcxx.stdmap_iterator.value
287lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
288lldb.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>
289<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
290lldb.SBValue.value
291lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider.value
292lldb.formatters.cpp.libcxx.stdlist_SynthProvider.value
293lldb.formatters.cpp.libcxx.stdlist_entry.value
294lldb.formatters.cpp.libcxx.stdlist_iterator.value
295lldb.formatters.cpp.libcxx.stdmap_iterator.value
296lldb.formatters.cpp.libcxx.stdmap_iterator_node.value
297lldb.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>
298<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>
299<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>
300<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>
301</div></div><a name="L95"></a><tt class="py-lineno">95</tt>  <tt class="py-line"> </tt><script type="text/javascript">
302<!--
303expandto(location.href);
304// -->
305</script>
306</pre>
307<br />
308<!-- ==================== NAVIGATION BAR ==================== -->
309<table class="navbar" border="0" width="100%" cellpadding="0"
310       bgcolor="#a0c0ff" cellspacing="0">
311  <tr valign="middle">
312
313  <!-- Tree link -->
314      <th>&nbsp;&nbsp;&nbsp;<a
315        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
316
317  <!-- Index link -->
318      <th>&nbsp;&nbsp;&nbsp;<a
319        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
320
321  <!-- Help link -->
322      <th>&nbsp;&nbsp;&nbsp;<a
323        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
324
325  <!-- Project homepage -->
326      <th class="navbar" align="right" width="100%">
327        <table border="0" cellpadding="0" cellspacing="0">
328          <tr><th class="navbar" align="center"
329            ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th>
330          </tr></table></th>
331  </tr>
332</table>
333<table border="0" cellpadding="0" cellspacing="0" width="100%%">
334  <tr>
335    <td align="left" class="footer">
336    Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:38 2013
337    </td>
338    <td align="right" class="footer">
339      <a target="mainFrame" href="http://epydoc.sourceforge.net"
340        >http://epydoc.sourceforge.net</a>
341    </td>
342  </tr>
343</table>
344
345<script type="text/javascript">
346  <!--
347  // Private objects are initially displayed (because if
348  // javascript is turned off then we want them to be
349  // visible); but by default, we want to hide them.  So hide
350  // them unless we have a cookie that says to show them.
351  checkCookie();
352  // -->
353</script>
354</body>
355</html>
356