update doc

This commit is contained in:
hengyunabc committed 2020-12-03 20:11:21 +08:00
1 parent f3f084db25
commit f48007c7d9
68 files changed
+274 -125

No files matched your search

+39
View File
@@ -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],
],
]
```
+1 -1
View File
@@ -1 +1 @@
Search.setIndex({docnames:["README","advanced-use","advice-class","agent","arthas-properties","async","batch-support","cat","classloader","commands","contact-us","dashboard","docker","download","dump","echo","getstatic","grep","groovy","heapdump","http-api","idea-plugin","index","install-detail","jad","jvm","keymap","logger","manual-install","mbean","mc","monitor","ognl","options","perfcounter","profiler","pwd","quick-start","redefine","release-notes","reset","save-log","sc","sm","spring-boot-starter","stack","start-arthas","sysenv","sysprop","tee","thread","trace","tt","tunnel","vmoption","watch","web-console"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,sphinx:56},filenames:["README.md","advanced-use.md","advice-class.md","agent.md","arthas-properties.md","async.md","batch-support.md","cat.md","classloader.md","commands.md","contact-us.md","dashboard.md","docker.md","download.md","dump.md","echo.md","getstatic.md","grep.md","groovy.md","heapdump.md","http-api.md","idea-plugin.md","index.md","install-detail.md","jad.md","jvm.md","keymap.md","logger.md","manual-install.md","mbean.md","mc.md","monitor.md","ognl.md","options.md","perfcounter.md","profiler.md","pwd.md","quick-start.md","redefine.md","release-notes.md","reset.md","save-log.md","sc.md","sm.md","spring-boot-starter.md","stack.md","start-arthas.md","sysenv.md","sysprop.md","tee.md","thread.md","trace.md","tt.md","tunnel.md","vmoption.md","watch.md","web-console.md"],objects:{},objnames:{},objtypes:{},terms:{"001018m":51,"004539m":51,"004935m":51,"005198m":51,"005372m":51,"005428m":51,"005778m":51,"006405m":51,"006783m":51,"008747m":51,"010317m":51,"010473m":51,"011636m":51,"012257m":51,"012416m":37,"013777m":51,"01696m":55,"019768m":51,"023715m":51,"028624m":51,"030432m":51,"033735m":51,"0353m":55,"03752m":51,"039s":1,"045534m":51,"05447m":51,"059839m":51,"061462m":51,"068692m":40,"06941m":51,"076457m":51,"078946m":51,"07b":11,"084025m":51,"08a":42,"094064m":51,"0_132":[24,37],"0_162":37,"0_51":48,"0_60":8,"0m0":1,"0ms":50,"0x0":47,"0x19":47,"0x1f5":47,"0x34":47,"0x4b67cf4d":52,"1000m":[11,50],"100m":[11,51],"100mb":27,"105228m":51,"10m":51,"1102230246251565e":[16,32,55],"113929m":51,"1170m":50,"120s":31,"123934m":51,"128518m":40,"1294m":51,"12m":37,"136007m":37,"1365m":37,"14dad5dc":40,"14m":37,"155m":37,"167786m":51,"168897m":55,"178583m":51,"1820m":37,"182813m":51,"185203m":37,"18m":11,"1b6d3586":8,"1ms":50,"200m":[50,55],"202c":20,"2048k":11,"20m":37,"232606m":51,"232887m":51,"234537m":51,"23m":37,"240m":37,"241735m":20,"256color":47,"25s":33,"272s":11,"276874m":51,"277392m":55,"280502m":55,"281s":1,"28ea5898":32,"29fafb28":50,"2a139a55":27,"2b085b5d":20,"2bdd9114":24,"2eaa1027":[16,55],"2gb":27,"301ec38b":32,"303498m":55,"30m":11,"311395m":37,"31a6493":50,"327a647b":[30,38],"32m":37,"357742m":51,"3648e874":5,"36m":11,"389634m":51,"3d4eac69":[8,14,16,24,37,42,45,51],"3fe55d741882":53,"3ms":50,"401m":50,"407b":20,"409446m":51,"4096m":11,"414993m":55,"41cf53f9":55,"42ac":47,"42d3":20,"43de":20,"45df64fc":18,"46m":11,"472067c7":32,"473f":5,"477882m":55,"47m":11,"48f4":53,"491k":11,"492551m":51,"4a00":53,"4b85612c":32,"4c0df5f8":24,"4de6":21,"4rel":27,"50m":11,"522b4":42,"522b408a":55,"530255m":55,"546aeec1":50,"549379m":51,"572s":1,"584m":50,"587833m":55,"58ef25a97948":21,"590102m":40,"5ae4e5fbab8b4e529ac404f260d4e2d1_1":20,"5b0e2d00":18,"5e69":5,"5level":27,"60bc264d":47,"617465m":51,"6367e55a78a2":53,"65m":37,"66350f69":[8,14,24,37,42],"66m":11,"672m":37,"6849794470754667710l":24,"68b31f0a":8,"6951a712":24,"69dcaba4":24,"69m":11,"6e51ad67":24,"6fafc4c2":24,"701b744f971e":20,"70m":11,"7127ee12":50,"715367m":37,"716391m":51,"725be470":50,"7f89660b079b":5,"7f9a81e8":32,"838077m":51,"849713m":51,"852594m":51,"85m":37,"883b":20,"8b39":20,"8ecb9cb7c7804d5d92e258b23d5245cc_1":20,"8f7f6ad7bc2d4cb5aa57a530927a95cc_2":20,"94766d3c":20,"955dbd1325334a84972b0f3ac19de4f7_2":20,"961441m":55,"969732m":37,"98aee3ccbefb":20,"9eed":5,"9fa3":21,"\u4e2d\u6587\u6587\u6863":22,"boolean":[2,16,32,55],"break":[18,20],"byte":[1,24,25,39],"case":[2,4,5,17,22,39,44,53],"catch":[37,38],"char":[24,26],"class":[0,2,9,11,12,14,16,18,20,22,24,25,27,30,31,32,33,39,42,43,44,45,48,52,55],"default":[1,3,4,6,11,14,17,18,20,24,26,27,29,31,32,33,35,39,40,41,42,43,45,46,47,50,51,52,53,54,55,56],"enum":16,"export":[12,34],"final":[2,6,24,37,50],"function":[20,33,37,38,51],"import":[22,24,37,44],"instanceof":52,"int":[24,37,38,42],"long":[16,20,24,27,32,45,50,51,55],"new":[20,24,35,37,38,44,50,51],"null":[2,5,8,14,20,27,32,37,55],"public":[2,8,18,24,37,38,42,43,44],"return":[0,1,2,18,20,22,31,32,36,37,38,43,52],"static":[1,16,18,24,32,37,38,39,42,44],"super":[8,24,42],"switch":[18,28,29,35],"throw":[2,18,24,37,38,39,51,52],"true":[2,4,11,12,20,24,27,33,37,38,41,42,48,50,51,52,54],"try":[0,1,12Line truncated
Search.setIndex({docnames:["README","advanced-use","advice-class","agent","arthas-properties","async","batch-support","cat","classloader","commands","contact-us","dashboard","docker","download","dump","echo","getstatic","grep","groovy","heapdump","http-api","idea-plugin","index","install-detail","jad","jvm","keymap","logger","manual-install","mbean","mc","monitor","ognl","options","perfcounter","profiler","pwd","quick-start","redefine","release-notes","reset","save-log","sc","sm","spring-boot-starter","stack","start-arthas","sysenv","sysprop","tee","thread","trace","tt","tunnel","vmoption","watch","web-console"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,sphinx:56},filenames:["README.md","advanced-use.md","advice-class.md","agent.md","arthas-properties.md","async.md","batch-support.md","cat.md","classloader.md","commands.md","contact-us.md","dashboard.md","docker.md","download.md","dump.md","echo.md","getstatic.md","grep.md","groovy.md","heapdump.md","http-api.md","idea-plugin.md","index.md","install-detail.md","jad.md","jvm.md","keymap.md","logger.md","manual-install.md","mbean.md","mc.md","monitor.md","ognl.md","options.md","perfcounter.md","profiler.md","pwd.md","quick-start.md","redefine.md","release-notes.md","reset.md","save-log.md","sc.md","sm.md","spring-boot-starter.md","stack.md","start-arthas.md","sysenv.md","sysprop.md","tee.md","thread.md","trace.md","tt.md","tunnel.md","vmoption.md","watch.md","web-console.md"],objects:{},objnames:{},objtypes:{},terms:{"001018m":51,"004539m":51,"004935m":51,"005198m":51,"005372m":51,"005428m":51,"005778m":51,"006405m":51,"006783m":51,"008747m":51,"010317m":51,"010473m":51,"011636m":51,"012257m":51,"012416m":37,"013777m":51,"01696m":55,"019768m":51,"023715m":51,"028624m":51,"030432m":51,"033735m":51,"0353m":55,"03752m":51,"039s":1,"045534m":51,"052877m":55,"05447m":51,"059839m":51,"060843m":55,"061462m":51,"068692m":40,"06941m":51,"076457m":51,"078946m":51,"07b":11,"084025m":51,"08a":42,"094064m":51,"0_132":[24,37],"0_162":37,"0_51":48,"0_60":8,"0m0":1,"0ms":50,"0x0":47,"0x19":47,"0x1f5":47,"0x34":47,"0x4b67cf4d":52,"1000m":[11,50],"100m":[11,51],"100mb":27,"105228m":51,"10m":51,"1102230246251565e":[16,32,55],"113929m":51,"1170m":50,"120s":31,"123934m":51,"128518m":40,"1294m":51,"12m":37,"136007m":37,"1365m":37,"14dad5dc":40,"14m":37,"155m":37,"167786m":51,"168897m":55,"178583m":51,"1820m":37,"182813m":51,"185203m":37,"18m":11,"1b6d3586":8,"1ms":50,"200m":[50,55],"202c":20,"2048k":11,"20m":37,"232606m":51,"232887m":51,"234537m":51,"23m":37,"240m":37,"241735m":20,"256color":47,"25s":33,"272s":11,"276874m":51,"277392m":55,"280502m":55,"281s":1,"28ea5898":32,"29fafb28":50,"2a139a55":27,"2b085b5d":20,"2bdd9114":24,"2eaa1027":[16,55],"2gb":27,"301ec38b":32,"303498m":55,"30m":11,"311395m":37,"31a6493":50,"327a647b":[30,38],"32m":37,"357742m":51,"3648e874":5,"36m":11,"389634m":51,"3d4eac69":[8,14,16,24,37,42,45,51],"3fe55d741882":53,"3ms":50,"401m":50,"407b":20,"409446m":51,"4096m":11,"414993m":55,"41cf53f9":55,"42ac":47,"42d3":20,"43de":20,"45df64fc":18,"46m":11,"472067c7":32,"473f":5,"477882m":55,"47m":11,"48f4":53,"491k":11,"492551m":51,"4a00":53,"4b85612c":32,"4c0df5f8":24,"4de6":21,"4rel":27,"50m":11,"522b4":42,"522b408a":55,"530255m":55,"546aeec1":50,"549379m":51,"572s":1,"584m":50,"587833m":55,"58ef25a97948":21,"590102m":40,"5ae4e5fbab8b4e529ac404f260d4e2d1_1":20,"5b0e2d00":18,"5e69":5,"5level":27,"60bc264d":47,"617465m":51,"6367e55a78a2":53,"65m":37,"66350f69":[8,14,24,37,42],"66m":11,"672m":37,"6849794470754667710l":24,"68b31f0a":8,"6951a712":24,"69dcaba4":24,"69m":11,"6e51ad67":24,"6fafc4c2":24,"701b744f971e":20,"70m":11,"7127ee12":50,"715367m":37,"716391m":51,"725be470":50,"7f89660b079b":5,"7f9a81e8":32,"838077m":51,"849713m":51,"852594m":51,"85m":37,"883b":20,"8b39":20,"8ecb9cb7c7804d5d92e258b23d5245cc_1":20,"8f7f6ad7bc2d4cb5aa57a530927a95cc_2":20,"94766d3c":20,"955dbd1325334a84972b0f3ac19de4f7_2":20,"961441m":55,"969732m":37,"98aee3ccbefb":20,"9eed":5,"9fa3":21,"\u4e2d\u6587\u6587\u6863":22,"boolean":[2,16,32,55],"break":[18,20],"byte":[1,24,25,39],"case":[2,4,5,17,22,39,44,53],"catch":[37,38],"char":[24,26],"class":[0,2,9,11,12,14,16,18,20,22,24,25,27,30,31,32,33,39,42,43,44,45,48,52,55],"default":[1,3,4,6,11,14,17,18,20,24,26,27,29,31,32,33,35,39,40,41,42,43,45,46,47,50,51,52,53,54,55,56],"enum":16,"export":[12,34],"final":[2,6,24,37,50],"function":[20,33,37,38,51,55],"import":[22,24,37,44],"instanceof":52,"int":[24,37,38,42],"long":[16,20,24,27,32,45,50,51,55],"new":[20,24,35,37,38,44,50,51],"null":[2,5,8,14,20,27,32,37,55],"public":[2,8,18,24,37,38,42,43,44],"return":[0,1,2,18,20,22,31,32,36,37,38,43,52],"static":[1,16,18,24,32,37,38,39,42,44],"super":[8,24,42],"switch":[18,28,29,35],"throw":[2,18,24,37,38,39,51,52],"true":[2,4,11,12,20,24,27,33,37,38,41,42,Line truncated
+36
View File
@@ -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>