A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20130904/311e3a96/attachment.html below:

<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 7:27 PM, Victor Stinner <span dir="ltr"><<a href="mailto:victor.stinner@gmail.com" target="_blank">victor.stinner@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":17t" style="overflow:hidden">API<br>
===<br>
<br>
To trace the most Python memory allocations, the module should be<br>
enabled as early as possible in your application by calling<br>
``tracemalloc.enable()`` function, by setting the ``PYTHONTRACEMALLOC``<br>
environment variable to ``1``, or Â by using ``-X tracemalloc`` command<br>
line option.<br>
<br>
<br>
Functions<br>
---------<br>
<br>
``enable()`` function:<br>
<br>
  Â  Start tracing Python memory allocations.<br>
<br>
``disable()`` function:<br>
<br>
  Â  Stop tracing Python memory allocations and stop the timer started by<br>
  Â  ``start_timer()``.<br>
<br>
``is_enabled()`` function:<br>
<br>
  Â  Get the status of the module: ``True`` if it is enabled, ``False``<br>
  Â  otherwise.<br></div></blockquote></div><br>Please mention that this API is similar to that of faulthandler and add a link to faulthandler docs. Â </div></div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4