update doc

gh-pages
hengyunabc 4 years ago
parent f3f084db25
commit f48007c7d9

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>&lt;no title&gt; &mdash; Arthas 3.4.4 文档</title>
<title>&lt;no title&gt; &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -234,3 +234,41 @@ Affect(class-cnt:1 , method-cnt:1) cost in 67 ms.
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]
```
#### 使用 -v 参数打印更多信息
> watch/trace/monitor/stack/tt 命令都支持 `-v` 参数
当命令执行之后,没有输出结果。有两种可能:
1. 匹配到的函数没有被执行
2. 条件表达式结果是 false
但用户区分不出是哪种情况。
使用 `-v`选项,则会打印`Condition express`的具体值和执行结果,方便确认。
比如:
```
$ 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],
],
]
```

@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.4.4',
VERSION: '3.4.5',
LANGUAGE: 'zh_CN',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>进阶使用 &mdash; Arthas 3.4.4 文档</title>
<title>进阶使用 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表达式核心变量 &mdash; Arthas 3.4.4 文档</title>
<title>表达式核心变量 &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>以Java Agent的方式启动 &mdash; Arthas 3.4.4 文档</title>
<title>以Java Agent的方式启动 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Properties &mdash; Arthas 3.4.4 文档</title>
<title>Arthas Properties &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas3.0的新特性 &mdash; Arthas 3.4.4 文档</title>
<title>Arthas3.0的新特性 &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 3.0新特性介绍 &mdash; Arthas 3.4.4 文档</title>
<title>Arthas 3.0新特性介绍 &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas后台异步任务 &mdash; Arthas 3.4.4 文档</title>
<title>Arthas后台异步任务 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>批处理功能 &mdash; Arthas 3.4.4 文档</title>
<title>批处理功能 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cat &mdash; Arthas 3.4.4 文档</title>
<title>cat &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classloader &mdash; Arthas 3.4.4 文档</title>
<title>classloader &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>命令列表 &mdash; Arthas 3.4.4 文档</title>
<title>命令列表 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>联系我们 &mdash; Arthas 3.4.4 文档</title>
<title>联系我们 &mdash; Arthas 3.4.5 文档</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dashboard &mdash; Arthas 3.4.4 文档</title>
<title>dashboard &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker &mdash; Arthas 3.4.4 文档</title>
<title>Docker &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>下载 &mdash; Arthas 3.4.4 文档</title>
<title>下载 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dump &mdash; Arthas 3.4.4 文档</title>
<title>dump &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>echo &mdash; Arthas 3.4.4 文档</title>
<title>echo &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -234,3 +234,42 @@ Affect(class-cnt:1 , method-cnt:1) cost in 67 ms.
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]
```
#### Use the -v parameter to print more information
> The watch/trace/monitor/stack/tt commands all support the `-v` parameter.
When the command is executed, there is no output result. There are two possibilities:
1. The matched function is not executed
2. The result of the conditional expression is false
But the user cannot tell which situation is.
Using the `-v` option, the specific value and execution result of `Condition express` will be printed for easy confirmation.
such as:
```
$ 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],
],
]
```

File diff suppressed because one or more lines are too long

@ -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 &#x27;params&#x27; &#x27;params[0] &gt; 100000&#x27;
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 1) cost in 29 ms, listenerId: 11
Condition express: params[0] &gt; 100000 , result: false
Condition express: params[0] &gt; 100000 , result: false
Condition express: params[0] &gt; 100000 , result: true
ts=2020-12-02 22:38:56; [cost=0.060843ms] result=@Object[][
@Integer[200033],
@ArrayList[
@Integer[200033],
],
]
Condition express: params[0] &gt; 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>

@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>索引 &mdash; Arthas 3.4.4 文档</title>
<title>索引 &mdash; Arthas 3.4.5 文档</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>getstatic &mdash; Arthas 3.4.4 文档</title>
<title>getstatic &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>grep &mdash; Arthas 3.4.4 文档</title>
<title>grep &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>groovy &mdash; Arthas 3.4.4 文档</title>
<title>groovy &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>heapdump &mdash; Arthas 3.4.4 文档</title>
<title>heapdump &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Http API &mdash; Arthas 3.4.4 文档</title>
<title>Http API &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IDEA Plugin &mdash; Arthas 3.4.4 文档</title>
<title>IDEA Plugin &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 用户文档 &mdash; Arthas 3.4.4 文档</title>
<title>Arthas 用户文档 &mdash; Arthas 3.4.5 文档</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Install &mdash; Arthas 3.4.4 文档</title>
<title>Arthas Install &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jad &mdash; Arthas 3.4.4 文档</title>
<title>jad &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jvm &mdash; Arthas 3.4.4 文档</title>
<title>jvm &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 命令行快捷键 &mdash; Arthas 3.4.4 文档</title>
<title>Arthas 命令行快捷键 &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>logger &mdash; Arthas 3.4.4 文档</title>
<title>logger &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>手动安装Arthas &mdash; Arthas 3.4.4 文档</title>
<title>手动安装Arthas &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mbean &mdash; Arthas 3.4.4 文档</title>
<title>mbean &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mc &mdash; Arthas 3.4.4 文档</title>
<title>mc &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>monitor &mdash; Arthas 3.4.4 文档</title>
<title>monitor &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

Binary file not shown.

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ognl &mdash; Arthas 3.4.4 文档</title>
<title>ognl &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>options &mdash; Arthas 3.4.4 文档</title>
<title>options &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>perfcounter &mdash; Arthas 3.4.4 文档</title>
<title>perfcounter &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>profiler &mdash; Arthas 3.4.4 文档</title>
<title>profiler &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pwd &mdash; Arthas 3.4.4 文档</title>
<title>pwd &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>快速入门 &mdash; Arthas 3.4.4 文档</title>
<title>快速入门 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>redefine &mdash; Arthas 3.4.4 文档</title>
<title>redefine &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Release Notes &mdash; Arthas 3.4.4 文档</title>
<title>Release Notes &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reset命令 &mdash; Arthas 3.4.4 文档</title>
<title>reset命令 &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>执行结果存日志 &mdash; Arthas 3.4.4 文档</title>
<title>执行结果存日志 &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sc &mdash; Arthas 3.4.4 文档</title>
<title>sc &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>搜索 &mdash; Arthas 3.4.4 文档</title>
<title>搜索 &mdash; Arthas 3.4.5 文档</title>
@ -73,7 +73,7 @@
<div class="version">
3.4.4
3.4.5
</div>

File diff suppressed because one or more lines are too long

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sm &mdash; Arthas 3.4.4 文档</title>
<title>sm &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Spring Boot Starter &mdash; Arthas 3.4.4 文档</title>
<title>Arthas Spring Boot Starter &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>stack &mdash; Arthas 3.4.4 文档</title>
<title>stack &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>启动 Arthas &mdash; Arthas 3.4.4 文档</title>
<title>启动 Arthas &mdash; Arthas 3.4.5 文档</title>
@ -72,7 +72,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sysenv &mdash; Arthas 3.4.4 文档</title>
<title>sysenv &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sysprop &mdash; Arthas 3.4.4 文档</title>
<title>sysprop &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tee &mdash; Arthas 3.4.4 文档</title>
<title>tee &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>thread &mdash; Arthas 3.4.4 文档</title>
<title>thread &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>trace &mdash; Arthas 3.4.4 文档</title>
<title>trace &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tt &mdash; Arthas 3.4.4 文档</title>
<title>tt &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Tunnel &mdash; Arthas 3.4.4 文档</title>
<title>Arthas Tunnel &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vmoption &mdash; Arthas 3.4.4 文档</title>
<title>vmoption &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>watch &mdash; Arthas 3.4.4 文档</title>
<title>watch &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>
@ -140,6 +140,7 @@
<li class="toctree-l4"><a class="reference internal" href="#id7">观察异常信息的例子</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id8">按照耗时进行过滤</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id9">观察当前对象中的属性</a></li>
<li class="toctree-l4"><a class="reference internal" href="#v">使用 -v 参数打印更多信息</a></li>
</ul>
</li>
</ul>
@ -497,6 +498,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="v">
<h3>使用 -v 参数打印更多信息<a class="headerlink" href="#v" title="永久链接至标题"></a></h3>
<blockquote>
<div><p>watch/trace/monitor/stack/tt 命令都支持 <code class="docutils literal notranslate"><span class="pre">-v</span></code> 参数</p>
</div></blockquote>
<p>当命令执行之后,没有输出结果。有两种可能:</p>
<ol class="simple">
<li><p>匹配到的函数没有被执行</p></li>
<li><p>条件表达式结果是 false</p></li>
</ol>
<p>但用户区分不出是哪种情况。</p>
<p>使用 <code class="docutils literal notranslate"><span class="pre">-v</span></code>选项,则会打印<code class="docutils literal notranslate"><span class="pre">Condition</span> <span class="pre">express</span></code>的具体值和执行结果,方便确认。</p>
<p>比如:</p>
<div class="highlight-default notranslate"><pre class="literal-block">$ watch -v -x 2 demo.MathGame print &#x27;params&#x27; &#x27;params[0] &gt; 100000&#x27;
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 1) cost in 29 ms, listenerId: 11
Condition express: params[0] &gt; 100000 , result: false
Condition express: params[0] &gt; 100000 , result: false
Condition express: params[0] &gt; 100000 , result: true
ts=2020-12-02 22:38:56; [cost=0.060843ms] result=@Object[][
@Integer[200033],
@ArrayList[
@Integer[200033],
],
]
Condition express: params[0] &gt; 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>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Console &mdash; Arthas 3.4.4 文档</title>
<title>Web Console &mdash; Arthas 3.4.5 文档</title>
@ -74,7 +74,7 @@
<div class="version">
3.4.4
3.4.5
</div>

Loading…
Cancel
Save