Improve QueueAppender/IOBufQueue performance
[folly.git] / folly / fibers / README.md
index c9947d3d121685243316a745c8cea56d956e2585..82e91a1605a5a062989ddb2490431f86c10762e5 100644 (file)
@@ -51,7 +51,7 @@
 
 <ul>
 <li>Individual fibers scheduling can&#039;t be directly controlled by application</li>
-<li>FiberManager is not thread-safe (we recommend to keep one FiberManager per thread). Application is responsible for managing it&#039;s own threads and distributing load between them</li>
+<li>FiberManager is not thread-safe (we recommend to keep one FiberManager per thread). Application is responsible for managing its own threads and distributing load between them</li>
 <li>We don&#039;t support automatic stack size adjustments. Each fiber has a stack of fixed size.</li>
 </ul>
 
@@ -497,6 +497,11 @@ $<span class="mi">4</span> <span class="o">=</span> <span class="nc" data-symbol
   <span class="o">&#125;</span>
 <span class="o">&#125;</span></pre></div>
 
+<p><tt>fiber-print-limit</tt> command can be used to change the maximum number of fibers printed for a <tt>fibers::FiberManager</tt> (default value is 100).</p>
+
+<div class="remarkup-code-block" data-code-lang="php"><pre class="remarkup-code"><span class="o">(</span><span class="no">gdb</span><span class="o">)</span> <span class="no">fiber</span><span class="o">-</span><span class="no">print</span><span class="o">-</span><span class="no">limit</span> <span class="mi">10</span>
+<span class="k">New</span> <span class="nc" data-symbol-name="fiber">fiber</span> <span class="no">limit</span> <span class="k">for</span> <span class="no">FiberManager</span> <span class="no">printer</span> <span class="no">set</span> <span class="no">to</span> <span class="mi">10</span></pre></div>
+
 <h3 id="printing-a-fiber-task">Printing a fiber-task <a href="#printing-a-fiber-task" class="headerLink">#</a></h3>
 
 <p>Given a pointer to a <tt>fibers::Fiber</tt>, which is running some fiber-task, you can get its current state:</p>