mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-21 07:06:18 +00:00
update doc
This commit is contained in:
1 parent
f3f084db25
commit
f48007c7d9
68 files changed
+274
-125
No files matched your search
@@ -142,6 +142,7 @@
|
||||
<li class="toctree-l4"><a class="reference internal" href="#check-exceptions">Check <code class="docutils literal notranslate"><span class="pre">exceptions</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#filter-by-time-cost">Filter by time cost</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#check-the-field-of-the-target-object">Check the field of the target object</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#use-the-v-parameter-to-print-more-information">Use the -v parameter to print more information</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -503,6 +504,41 @@ ts=2018-12-03 20:04:34; [cost=131.303498ms] result=@Integer[8]
|
||||
ts=2018-12-03 20:04:35; [cost=0.961441ms] result=@Integer[8]</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="use-the-v-parameter-to-print-more-information">
|
||||
<h3>Use the -v parameter to print more information<a class="headerlink" href="#use-the-v-parameter-to-print-more-information" title="Permalink to this headline">¶</a></h3>
|
||||
<blockquote>
|
||||
<div><p>The watch/trace/monitor/stack/tt commands all support the <code class="docutils literal notranslate"><span class="pre">-v</span></code> parameter.</p>
|
||||
</div></blockquote>
|
||||
<p>When the command is executed, there is no output result. There are two possibilities:</p>
|
||||
<ol class="simple">
|
||||
<li><p>The matched function is not executed</p></li>
|
||||
<li><p>The result of the conditional expression is false</p></li>
|
||||
</ol>
|
||||
<p>But the user cannot tell which situation is.</p>
|
||||
<p>Using the <code class="docutils literal notranslate"><span class="pre">-v</span></code> option, the specific value and execution result of <code class="docutils literal notranslate"><span class="pre">Condition</span> <span class="pre">express</span></code> will be printed for easy confirmation.</p>
|
||||
<p>such as:</p>
|
||||
<div class="highlight-default notranslate"><pre class="literal-block">$ watch -v -x 2 demo.MathGame print 'params' 'params[0] > 100000'
|
||||
Press Q or Ctrl+C to abort.
|
||||
Affect(class count: 1 , method count: 1) cost in 29 ms, listenerId: 11
|
||||
Condition express: params[0] > 100000 , result: false
|
||||
Condition express: params[0] > 100000 , result: false
|
||||
Condition express: params[0] > 100000 , result: true
|
||||
ts=2020-12-02 22:38:56; [cost=0.060843ms] result=@Object[][
|
||||
@Integer[200033],
|
||||
@ArrayList[
|
||||
@Integer[200033],
|
||||
],
|
||||
]
|
||||
Condition express: params[0] > 100000 , result: true
|
||||
ts=2020-12-02 22:38:57; [cost=0.052877ms] result=@Object[][
|
||||
@Integer[123047],
|
||||
@ArrayList[
|
||||
@Integer[29],
|
||||
@Integer[4243],
|
||||
],
|
||||
]</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user