<liclass="toctree-l1"><aclass="reference external"href="https://github.com/alibaba/arthas/issues?q=label%3Aquestion-answered">Questions and answers</a></li>
<liclass="toctree-l1"><aclass="reference external"href="https://github.com/alibaba/arthas">Fork me at GitHub</a></li>
<spanid="sc"></span><h1>sc<aclass="headerlink"href="#sc"title="Permalink to this headline">¶</a></h1>
<p>Check the profiles of the loaded classes.</p>
<p>Abbreviated from “Search-Class”; with the help of this command, you can search out all the loaded classes in JVM. Supported options are: <codeclass="docutils literal notranslate"><spanclass="pre">[d]</span></code>、<codeclass="docutils literal notranslate"><spanclass="pre">[E]</span></code>、<codeclass="docutils literal notranslate"><spanclass="pre">[f]</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">[x:]</span></code>.</p>
<divclass="section"id="options">
<spanid="options"></span><h2>Options<aclass="headerlink"href="#options"title="Permalink to this headline">¶</a></h2>
<divclass="section"id="specification">
<spanid="specification"></span><h3>Specification<aclass="headerlink"href="#specification"title="Permalink to this headline">¶</a></h3>
<tableborder="1"class="docutils">
<thead>
<tr>
<thalign="right">Name</th>
<thalign="left">Specification</th>
</tr>
</thead>
<tbody>
<tr>
<tdalign="right"><em>class-pattern</em></td>
<tdalign="left">pattern for the class name</td>
</tr>
<tr>
<tdalign="right"><em>method-pattern</em></td>
<tdalign="left">pattern for the method name</td>
</tr>
<tr>
<tdalign="right">[d]</td>
<tdalign="left">print the details of the current class including the source file, class declaration, the class loaders and the like.<br/>F.Y.I if a class is loaded by several class loaders, then the class will be printed several times</td>
</tr>
<tr>
<tdalign="right">[E]</td>
<tdalign="left">turn on regx matching while the default is wildcards matching</td>
</tr>
<tr>
<tdalign="right">[f]</td>
<tdalign="left">print the fields info of the current class, which should be used along with <code>-d</code></td>
</tr>
<tr>
<tdalign="right">[x:]</td>
<tdalign="left">the depth to print the static fields, whose default is <code>0</code> - directly invoke the <code>toString()</code></td>
</tr>
</tbody>
</table><p>Tip:</p>
<olclass="simple">
<li><em>class-patten</em> supports full qualified class name (e.g. com.taobao.test.AAA and com/taobao/test/AAA)</li>
<li><codeclass="docutils literal notranslate"><spanclass="pre">sc</span></code> turned on the <codeclass="docutils literal notranslate"><spanclass="pre">sub-class</span></code> matching in default mode, if you do want to hide the <codeclass="docutils literal notranslate"><spanclass="pre">sub-class</span></code> please just turn it off via <codeclass="docutils literal notranslate"><spanclass="pre">options</span><spanclass="pre">disable-sub-class</span><spanclass="pre">true</span></code>.</li>
</ol>
</div>
<divclass="section"id="usage">
<spanid="usage"></span><h3>Usage<aclass="headerlink"href="#usage"title="Permalink to this headline">¶</a></h3>
<p>Check the static fields of a class using <codeclass="docutils literal notranslate"><spanclass="pre">sc</span><spanclass="pre">-df</span><spanclass="pre">class-name</span></code></p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.