Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 552d72b401c5b4a5a4c52922e7b31f2c > files > 80

python-eventlet-doc-0.9.12-1.fc13.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>debug – Debugging tools for Eventlet &mdash; Eventlet v0.9.12 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '0.9.12',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="top" title="Eventlet v0.9.12 documentation" href="../index.html" />
    <link rel="up" title="Module Reference" href="../modules.html" />
    <link rel="next" title="db_pool – DBAPI 2 database connection pooling" href="db_pool.html" />
    <link rel="prev" title="corolocal – Coroutine local storage" href="corolocal.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="db_pool.html" title="db_pool – DBAPI 2 database connection pooling"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="corolocal.html" title="corolocal – Coroutine local storage"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">Eventlet v0.9.12 documentation</a> &raquo;</li>
          <li><a href="../modules.html" accesskey="U">Module Reference</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-eventlet.debug">
<h1><tt class="xref docutils literal"><span class="pre">debug</span></tt> &#8211; Debugging tools for Eventlet<a class="headerlink" href="#module-eventlet.debug" title="Permalink to this headline">¶</a></h1>
<p>The debug module contains utilities and functions for better 
debugging Eventlet-powered applications.</p>
<dl class="function">
<dt id="eventlet.debug.spew">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">spew</tt><big>(</big><em>trace_names=None</em>, <em>show_values=False</em><big>)</big><a class="headerlink" href="#eventlet.debug.spew" title="Permalink to this definition">¶</a></dt>
<dd>Install a trace hook which writes incredibly detailed logs
about what code is being executed to stdout.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.unspew">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">unspew</tt><big>(</big><big>)</big><a class="headerlink" href="#eventlet.debug.unspew" title="Permalink to this definition">¶</a></dt>
<dd>Remove the trace hook installed by spew.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.format_hub_listeners">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">format_hub_listeners</tt><big>(</big><big>)</big><a class="headerlink" href="#eventlet.debug.format_hub_listeners" title="Permalink to this definition">¶</a></dt>
<dd>Returns a formatted string of the current listeners on the current
hub.  This can be useful in determining what&#8217;s going on in the event system,
especially when used in conjunction with <a title="eventlet.debug.hub_listener_stacks" class="reference internal" href="#eventlet.debug.hub_listener_stacks"><tt class="xref docutils literal"><span class="pre">hub_listener_stacks()</span></tt></a>.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.format_hub_timers">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">format_hub_timers</tt><big>(</big><big>)</big><a class="headerlink" href="#eventlet.debug.format_hub_timers" title="Permalink to this definition">¶</a></dt>
<dd>Returns a formatted string of the current timers on the current
hub.  This can be useful in determining what&#8217;s going on in the event system,
especially when used in conjunction with <a title="eventlet.debug.hub_timer_stacks" class="reference internal" href="#eventlet.debug.hub_timer_stacks"><tt class="xref docutils literal"><span class="pre">hub_timer_stacks()</span></tt></a>.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.hub_listener_stacks">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">hub_listener_stacks</tt><big>(</big><em>state=False</em><big>)</big><a class="headerlink" href="#eventlet.debug.hub_listener_stacks" title="Permalink to this definition">¶</a></dt>
<dd>Toggles whether or not the hub records the stack when clients register 
listeners on file descriptors.  This can be useful when trying to figure 
out what the hub is up to at any given moment.  To inspect the stacks
of the current listeners, call <a title="eventlet.debug.format_hub_listeners" class="reference internal" href="#eventlet.debug.format_hub_listeners"><tt class="xref docutils literal"><span class="pre">format_hub_listeners()</span></tt></a> at critical
junctures in the application logic.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.hub_exceptions">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">hub_exceptions</tt><big>(</big><em>state=True</em><big>)</big><a class="headerlink" href="#eventlet.debug.hub_exceptions" title="Permalink to this definition">¶</a></dt>
<dd>Toggles whether the hub prints exceptions that are raised from its
timers.  This can be useful to see how greenthreads are terminating.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.tpool_exceptions">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">tpool_exceptions</tt><big>(</big><em>state=False</em><big>)</big><a class="headerlink" href="#eventlet.debug.tpool_exceptions" title="Permalink to this definition">¶</a></dt>
<dd>Toggles whether tpool itself prints exceptions that are raised from 
functions that are executed in it, in addition to raising them like
it normally does.</dd></dl>

<dl class="function">
<dt id="eventlet.debug.hub_timer_stacks">
<tt class="descclassname">eventlet.debug.</tt><tt class="descname">hub_timer_stacks</tt><big>(</big><em>state=False</em><big>)</big><a class="headerlink" href="#eventlet.debug.hub_timer_stacks" title="Permalink to this definition">¶</a></dt>
<dd>Toggles whether or not the hub records the stack when timers are set.  
To inspect the stacks of the current timers, call <a title="eventlet.debug.format_hub_timers" class="reference internal" href="#eventlet.debug.format_hub_timers"><tt class="xref docutils literal"><span class="pre">format_hub_timers()</span></tt></a> 
at critical junctures in the application logic.</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h4>Previous topic</h4>
            <p class="topless"><a href="corolocal.html"
                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">corolocal</span></tt> &#8211; Coroutine local storage</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="db_pool.html"
                                  title="next chapter"><tt class="docutils literal docutils literal"><span class="pre">db_pool</span></tt> &#8211; DBAPI 2 database connection pooling</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../_sources/modules/debug.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="db_pool.html" title="db_pool – DBAPI 2 database connection pooling"
             >next</a> |</li>
        <li class="right" >
          <a href="corolocal.html" title="corolocal – Coroutine local storage"
             >previous</a> |</li>
        <li><a href="../index.html">Eventlet v0.9.12 documentation</a> &raquo;</li>
          <li><a href="../modules.html" >Module Reference</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2005-2010, Eventlet Contributors.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.6.
    </div>
  </body>
</html>