autodoc.git / traditional_manual / chapter_21.html

version» Context lines:

autodoc.git/traditional_manual/chapter_21.html:17630:   <dd class='body--doc'><p>The total number of programs</p>   </dd>   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>map_all_objects()</code></p>   </dd></dl>         <hr />   <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>map_all_strings</b></span> + </dt> + <dd><p><code><code class='datatype'>int(0..)</code> <b><span class='method'>map_all_strings</span>(</b><code class='datatype'>function</code>(<code class='datatype'>string</code>:<code class='datatype'>void</code>) <code class='argument'>cb</code><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Call cb for all strings that currently exist.</p> + <p> strings might be missed if <code>cb</code> creates new strings or destroys +  old ones.</p> + <p> This function is only intended to be used for debug purposes.</p> + </dd> + <dt class='head--doc'>Returns</dt> + <dd class='body--doc'><p>The total number of strings</p> + </dd> + <dt class='head--doc'>See also</dt> + <dd class='body--doc'><p><code>next_object()</code></p> + </dd></dl> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>memory_usage</b></span>   </dt>   <dd><p><code><code class='datatype'>mapping</code>(<code class='datatype'>string</code>:<code class='datatype'>int</code>) <b><span class='method'>memory_usage</span>(</b><b>)</b></code></p></dd>      <dt class='head--doc'>Description</dt>   <dd class='body--doc'><p>Check memory usage.</p>   <p> This function is mostly intended for debugging. It delivers a mapping    with information about how many arrays/mappings/strings etc. there    are currently allocated and how much memory they use.</p>   <p> The entries in the mapping are typically paired, with one