release 3.1.7

This commit is contained in:
hengyunabc
2019-12-04 15:03:46 +08:00
parent 1eebba149e
commit fee7ca8219
111 changed files with 618 additions and 333 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>&lt;no title&gt; &mdash; Arthas 3.1.5 文档</title>
<title>&lt;no title&gt; &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+57 -1
View File
@@ -13,8 +13,64 @@ options
| debug-for-asm | false | 打印ASM相关的调试信息 |
| save-result | false | 是否打开执行结果存日志功能,打开之后所有命令的运行结果都将保存到`~/logs/arthas-cache/result.log`中 |
| job-timeout | 1d | 异步后台任务的默认超时时间,超过这个时间,任务自动停止;比如设置 1d, 2h, 3m, 25s,分别代表天、小时、分、秒 |
| print-parent-fields | true | 是否打印在parent class里的filed |
### 使用说明
### 查看所有的options
```bash
$ options
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
0 bool unsafe false Option to support This option enables to proxy function
ean system-level class ality of JVM classes. Due to serious
security risk a JVM crash is possibly
be introduced. Do not activate it un
less you are able to manage.
1 bool dump false Option to dump the This option enables the enhanced clas
ean enhanced classes ses to be dumped to external file for
further de-compilation and analysis.
1 bool batch-re-tr true Option to support This options enables to reTransform c
ean ansform batch reTransform lasses with batch mode.
Class
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.
1 bool disable-sub false Option to control This option disable to include sub cl
ean -class include sub class ass when matching class.
when class matchin
g
1 bool debug-for-a false Option to print DE This option enables to print DEBUG me
ean sm BUG message if ASM ssage of ASM for each method invocati
is involved on.
1 bool save-result false Option to print co This option enables to save each comm
ean mmand's result to and's result to log file, which path
log file is ${user.home}/logs/arthas-cache/res
ult.log.
2 Stri job-timeout 1d Option to job time This option setting job timeout,The u
ng out nit can be d, h, m, s for day, hour,
minute, second. 1d is one day in defa
ult
1 bool print-paren true Option to print al This option enables print files in pa
ean t-fields l fileds in parent rent class, default value true.
class
```
### 获取option的值
```
$ options json-format
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.
```
> 默认情况下`json-format`为false,如果希望`watch`/`tt`等命令结果以json格式输出,则可以设置`json-format`为true。
### 设置指定的option
例如,想打开执行结果存日志功能,输入如下命令即可:
+45 -29
View File
@@ -45,13 +45,15 @@ trace
```bash
$ trace demo.MathGame run
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 42 ms.
`---ts=2018-12-04 00:44:17;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[10.611029ms] demo.MathGame:run()
+---[0.05638ms] java.util.Random:nextInt()
+---[10.036885ms] demo.MathGame:primeFactors()
`---[0.170316ms] demo.MathGame:print()
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 28 ms.
`---ts=2019-12-04 00:45:08;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.617465ms] demo.MathGame:run()
`---[0.078946ms] demo.MathGame:primeFactors() #24 [throws Exception]
`---ts=2019-12-04 00:45:09;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[1.276874ms] demo.MathGame:run()
`---[0.03752ms] demo.MathGame:primeFactors() #24 [throws Exception]
```
#### trace次数限制
@@ -61,36 +63,50 @@ Affect(class-cnt:1 , method-cnt:1) cost in 42 ms.
```bash
$ trace demo.MathGame run -n 1
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 35 ms.
`---ts=2019-11-28 15:54:28;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.866311ms] demo.MathGame:run()
+---[0.044001ms] java.util.Random:nextInt() #23
+---[0.069037ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.003227ms] java.lang.StringBuilder:<init>() #28
+---[0.006155ms] java.lang.Integer:valueOf() #28
+---[0.071335ms] java.lang.String:format() #28
+---[min=0.002142ms,max=0.002237ms,total=0.004379ms,count=2] java.lang.StringBuilder:append() #28
+---[0.011072ms] java.lang.Exception:getMessage() #28
+---[0.006048ms] java.lang.StringBuilder:toString() #28
`---[0.084138ms] java.io.PrintStream:println() #28
Affect(class-cnt:1 , method-cnt:1) cost in 20 ms.
`---ts=2019-12-04 00:45:53;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.549379ms] demo.MathGame:run()
+---[0.059839ms] demo.MathGame:primeFactors() #24
`---[0.232887ms] demo.MathGame:print() #25
Command execution times exceed limit: 1, so command will exit. You can set it with -n option.
```
#### 过滤掉jdk的函数
#### 包含jdk的函数
* `--skipJDKMethod <value> ` skip jdk method trace, default value true.
默认情况下,trace不会包含jdk里的函数调用,如果希望trace jdk里的函数,需要显式设置`--skipJDKMethod false`。
```bash
$ trace -j demo.MathGame run
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 31 ms.
`---ts=2018-12-04 01:09:14;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[5.190646ms] demo.MathGame:run()
+---[4.465779ms] demo.MathGame:primeFactors()
`---[0.375324ms] demo.MathGame:print()
```
$ trace --skipJDKMethod false demo.MathGame run
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 60 ms.
`---ts=2019-12-04 00:44:41;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[1.357742ms] demo.MathGame:run()
+---[0.028624ms] java.util.Random:nextInt() #23
+---[0.045534ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.005372ms] java.lang.StringBuilder:<init>() #28
+---[0.012257ms] java.lang.Integer:valueOf() #28
+---[0.234537ms] java.lang.String:format() #28
+---[min=0.004539ms,max=0.005778ms,total=0.010317ms,count=2] java.lang.StringBuilder:append() #28
+---[0.013777ms] java.lang.Exception:getMessage() #28
+---[0.004935ms] java.lang.StringBuilder:toString() #28
`---[0.06941ms] java.io.PrintStream:println() #28
* `-j`: jdkMethodSkip, skip jdk method trace
`---ts=2019-12-04 00:44:42;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[3.030432ms] demo.MathGame:run()
+---[0.010473ms] java.util.Random:nextInt() #23
+---[0.023715ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.005198ms] java.lang.StringBuilder:<init>() #28
+---[0.006405ms] java.lang.Integer:valueOf() #28
+---[0.178583ms] java.lang.String:format() #28
+---[min=0.011636ms,max=0.838077ms,total=0.849713ms,count=2] java.lang.StringBuilder:append() #28
+---[0.008747ms] java.lang.Exception:getMessage() #28
+---[0.019768ms] java.lang.StringBuilder:toString() #28
`---[0.076457ms] java.io.PrintStream:println() #28
```
#### 据调用耗时过滤
+1 -1
View File
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.1.5',
VERSION: '3.1.7',
LANGUAGE: 'zh_CN',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>进阶使用 &mdash; Arthas 3.1.5 文档</title>
<title>进阶使用 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表达式核心变量 &mdash; Arthas 3.1.5 文档</title>
<title>表达式核心变量 &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas3.0的新特性 &mdash; Arthas 3.1.5 文档</title>
<title>Arthas3.0的新特性 &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 3.0新特性介绍 &mdash; Arthas 3.1.5 文档</title>
<title>Arthas 3.0新特性介绍 &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas异步调用 &mdash; Arthas 3.1.5 文档</title>
<title>Arthas异步调用 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>批处理功能 &mdash; Arthas 3.1.5 文档</title>
<title>批处理功能 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cat &mdash; Arthas 3.1.5 文档</title>
<title>cat &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classloader &mdash; Arthas 3.1.5 文档</title>
<title>classloader &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>命令列表 &mdash; Arthas 3.1.5 文档</title>
<title>命令列表 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>联系我们 &mdash; Arthas 3.1.5 文档</title>
<title>联系我们 &mdash; Arthas 3.1.7 文档</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dashboard &mdash; Arthas 3.1.5 文档</title>
<title>dashboard &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker &mdash; Arthas 3.1.5 文档</title>
<title>Docker &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>下载 &mdash; Arthas 3.1.5 文档</title>
<title>下载 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dump &mdash; Arthas 3.1.5 文档</title>
<title>dump &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>&lt;no title&gt; &mdash; Arthas 3.1.5 documentation</title>
<title>&lt;no title&gt; &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+59 -2
View File
@@ -12,9 +12,66 @@ options
| disable-sub-class | false | whether to enable matching child classes. The default value is `true`. If exact match is desire, turn off this flag|
| debug-for-asm | false | whether to enable ASM debugging log|
| save-result | false | whether to save execution result. All execution results will be saved to `~/logs/arthas-cache/result.log` when it's turned on|
| job-timeout | 1d | default timeout for background jobs. Background job will be terminated once it's timed out (i.e. 1d, 2h, 3m, 25s)|
| job-timeout | 1d | default timeout for background jobs. Background job will be terminated once it's timed out (i.e. 1d, 2h, 3m, 25s)| print-parent-fields | true | This option enables print files in parent class, default value true.|
### Usage
### View all options
```bash
$ options
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
0 bool unsafe false Option to support This option enables to proxy function
ean system-level class ality of JVM classes. Due to serious
security risk a JVM crash is possibly
be introduced. Do not activate it un
less you are able to manage.
1 bool dump false Option to dump the This option enables the enhanced clas
ean enhanced classes ses to be dumped to external file for
further de-compilation and analysis.
1 bool batch-re-tr true Option to support This options enables to reTransform c
ean ansform batch reTransform lasses with batch mode.
Class
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.
1 bool disable-sub false Option to control This option disable to include sub cl
ean -class include sub class ass when matching class.
when class matchin
g
1 bool debug-for-a false Option to print DE This option enables to print DEBUG me
ean sm BUG message if ASM ssage of ASM for each method invocati
is involved on.
1 bool save-result false Option to print co This option enables to save each comm
ean mmand's result to and's result to log file, which path
log file is ${user.home}/logs/arthas-cache/res
ult.log.
2 Stri job-timeout 1d Option to job time This option setting job timeout,The u
ng out nit can be d, h, m, s for day, hour,
minute, second. 1d is one day in defa
ult
1 bool print-paren true Option to print al This option enables print files in pa
ean t-fields l fileds in parent rent class, default value true.
class
```
### Get special option value
```
$ options json-format
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.
```
> By default, `json-format` is false. When set `json-format` to true, commands like `wathc`/`tt` will print result with `json` format.
### Set special option value
For example, to enable saving command execution result, input the command below:
+43 -29
View File
@@ -43,13 +43,15 @@ Start `arthas-demo` in [Quick Start](quick-start.md).
```bash
$ trace demo.MathGame run
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 42 ms.
`---ts=2018-12-04 00:44:17;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[10.611029ms] demo.MathGame:run()
+---[0.05638ms] java.util.Random:nextInt()
+---[10.036885ms] demo.MathGame:primeFactors()
`---[0.170316ms] demo.MathGame:print()
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 28 ms.
`---ts=2019-12-04 00:45:08;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.617465ms] demo.MathGame:run()
`---[0.078946ms] demo.MathGame:primeFactors() #24 [throws Exception]
`---ts=2019-12-04 00:45:09;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[1.276874ms] demo.MathGame:run()
`---[0.03752ms] demo.MathGame:primeFactors() #24 [throws Exception]
```
@@ -60,35 +62,47 @@ If the method invoked many times, use `-n` options to specify trace times. For e
```bash
$ trace demo.MathGame run -n 1
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 35 ms.
`---ts=2019-11-28 15:54:28;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.866311ms] demo.MathGame:run()
+---[0.044001ms] java.util.Random:nextInt() #23
+---[0.069037ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.003227ms] java.lang.StringBuilder:<init>() #28
+---[0.006155ms] java.lang.Integer:valueOf() #28
+---[0.071335ms] java.lang.String:format() #28
+---[min=0.002142ms,max=0.002237ms,total=0.004379ms,count=2] java.lang.StringBuilder:append() #28
+---[0.011072ms] java.lang.Exception:getMessage() #28
+---[0.006048ms] java.lang.StringBuilder:toString() #28
`---[0.084138ms] java.io.PrintStream:println() #28
Affect(class-cnt:1 , method-cnt:1) cost in 20 ms.
`---ts=2019-12-04 00:45:53;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.549379ms] demo.MathGame:run()
+---[0.059839ms] demo.MathGame:primeFactors() #24
`---[0.232887ms] demo.MathGame:print() #25
Command execution times exceed limit: 1, so command will exit. You can set it with -n option.
```
#### Ignore jdk method
#### Include jdk method
* `--skipJDKMethod <value> ` skip jdk method trace, default value true.
```bash
$ trace -j demo.MathGame run
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 31 ms.
`---ts=2018-12-04 01:09:14;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[5.190646ms] demo.MathGame:run()
+---[4.465779ms] demo.MathGame:primeFactors()
`---[0.375324ms] demo.MathGame:print()
```
$ trace --skipJDKMethod false demo.MathGame run
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 60 ms.
`---ts=2019-12-04 00:44:41;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[1.357742ms] demo.MathGame:run()
+---[0.028624ms] java.util.Random:nextInt() #23
+---[0.045534ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.005372ms] java.lang.StringBuilder:<init>() #28
+---[0.012257ms] java.lang.Integer:valueOf() #28
+---[0.234537ms] java.lang.String:format() #28
+---[min=0.004539ms,max=0.005778ms,total=0.010317ms,count=2] java.lang.StringBuilder:append() #28
+---[0.013777ms] java.lang.Exception:getMessage() #28
+---[0.004935ms] java.lang.StringBuilder:toString() #28
`---[0.06941ms] java.io.PrintStream:println() #28
* `-j`: jdkMethodSkip, skip jdk method trace
`---ts=2019-12-04 00:44:42;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[3.030432ms] demo.MathGame:run()
+---[0.010473ms] java.util.Random:nextInt() #23
+---[0.023715ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.005198ms] java.lang.StringBuilder:<init>() #28
+---[0.006405ms] java.lang.Integer:valueOf() #28
+---[0.178583ms] java.lang.String:format() #28
+---[min=0.011636ms,max=0.838077ms,total=0.849713ms,count=2] java.lang.StringBuilder:append() #28
+---[0.008747ms] java.lang.Exception:getMessage() #28
+---[0.019768ms] java.lang.StringBuilder:toString() #28
`---[0.076457ms] java.io.PrintStream:println() #28
```
#### Filtering by cost
+1 -1
View File
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.1.5',
VERSION: '3.1.7',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Usage &mdash; Arthas 3.1.5 documentation</title>
<title>Advanced Usage &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fundamental Fields in Expressions &mdash; Arthas 3.1.5 documentation</title>
<title>Fundamental Fields in Expressions &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Async Jobs &mdash; Arthas 3.1.5 documentation</title>
<title>Arthas Async Jobs &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Batch Processing &mdash; Arthas 3.1.5 documentation</title>
<title>Batch Processing &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cat &mdash; Arthas 3.1.5 documentation</title>
<title>cat &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classloader &mdash; Arthas 3.1.5 documentation</title>
<title>classloader &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>All Commands &mdash; Arthas 3.1.5 documentation</title>
<title>All Commands &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dashboard &mdash; Arthas 3.1.5 documentation</title>
<title>dashboard &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker &mdash; Arthas 3.1.5 documentation</title>
<title>Docker &mdash; Arthas 3.1.7 documentation</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Download &mdash; Arthas 3.1.5 documentation</title>
<title>Download &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dump &mdash; Arthas 3.1.5 documentation</title>
<title>dump &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Index &mdash; Arthas 3.1.5 documentation</title>
<title>Index &mdash; Arthas 3.1.7 documentation</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>getstatic &mdash; Arthas 3.1.5 documentation</title>
<title>getstatic &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>grep &mdash; Arthas 3.1.5 documentation</title>
<title>grep &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>groovy &mdash; Arthas 3.1.5 documentation</title>
<title>groovy &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>heapdump &mdash; Arthas 3.1.5 documentation</title>
<title>heapdump &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Documentation &mdash; Arthas 3.1.5 documentation</title>
<title>Arthas Documentation &mdash; Arthas 3.1.7 documentation</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Install Arthas &mdash; Arthas 3.1.5 documentation</title>
<title>Install Arthas &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jad &mdash; Arthas 3.1.5 documentation</title>
<title>jad &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jvm &mdash; Arthas 3.1.5 documentation</title>
<title>jvm &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Console Keymap &mdash; Arthas 3.1.5 documentation</title>
<title>Arthas Console Keymap &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>logger &mdash; Arthas 3.1.5 documentation</title>
<title>logger &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manually Install Arthas &mdash; Arthas 3.1.5 documentation</title>
<title>Manually Install Arthas &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mbean &mdash; Arthas 3.1.5 documentation</title>
<title>mbean &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mc &mdash; Arthas 3.1.5 documentation</title>
<title>mc &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>monitor &mdash; Arthas 3.1.5 documentation</title>
<title>monitor &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ognl &mdash; Arthas 3.1.5 documentation</title>
<title>ognl &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+59 -5
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>options &mdash; Arthas 3.1.5 documentation</title>
<title>options &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
@@ -126,7 +126,9 @@
<li class="toctree-l2"><a class="reference internal" href="grep.html">grep</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">options</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#usage">Usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="#view-all-options">View all options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#get-special-option-value">Get special option value</a></li>
<li class="toctree-l3"><a class="reference internal" href="#set-special-option-value">Set special option value</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#basic-arthas-commands">Basic Arthas Commands</a></li>
@@ -262,8 +264,60 @@
<td>default timeout for background jobs. Background job will be terminated once it's timed out (i.e. 1d, 2h, 3m, 25s)</td>
</tr>
</tbody>
</table><div class="section" id="usage">
<h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline"></a></h2>
</table><div class="section" id="view-all-options">
<h2>View all options<a class="headerlink" href="#view-all-options" title="Permalink to this headline"></a></h2>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ options
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
0 bool unsafe false Option to support This option enables to proxy function
ean system-level class ality of JVM classes. Due to serious
security risk a JVM crash is possibly
be introduced. Do not activate it un
less you are able to manage.
1 bool dump false Option to dump the This option enables the enhanced clas
ean enhanced classes ses to be dumped to external file for
further de-compilation and analysis.
1 bool batch-re-tr true Option to support This options enables to reTransform c
ean ansform batch reTransform lasses with batch mode.
Class
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.
1 bool disable-sub false Option to control This option disable to include sub cl
ean -class include sub class ass when matching class.
when class matchin
g
1 bool debug-for-a false Option to print DE This option enables to print DEBUG me
ean sm BUG message if ASM ssage of ASM for each method invocati
is involved on.
1 bool save-result false Option to print co This option enables to save each comm
ean mmand&#x27;s result to and&#x27;s result to log file, which path
log file is ${user.home}/logs/arthas-cache/res
ult.log.
2 Stri job-timeout 1d Option to job time This option setting job timeout,The u
ng out nit can be d, h, m, s for day, hour,
minute, second. 1d is one day in defa
ult
1 bool print-paren true Option to print al This option enables print files in pa
ean t-fields l fileds in parent rent class, default value true.
class</pre></div>
</div>
</div>
<div class="section" id="get-special-option-value">
<h2>Get special option value<a class="headerlink" href="#get-special-option-value" title="Permalink to this headline"></a></h2>
<div class="highlight-default notranslate"><pre class="literal-block">$ options json-format
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.</pre>
</div>
<blockquote>
<div><p>By default, <code class="docutils literal notranslate"><span class="pre">json-format</span></code> is false. When set <code class="docutils literal notranslate"><span class="pre">json-format</span></code> to true, commands like <code class="docutils literal notranslate"><span class="pre">wathc</span></code>/<code class="docutils literal notranslate"><span class="pre">tt</span></code> will print result with <code class="docutils literal notranslate"><span class="pre">json</span></code> format.</p>
</div></blockquote>
</div>
<div class="section" id="set-special-option-value">
<h2>Set special option value<a class="headerlink" href="#set-special-option-value" title="Permalink to this headline"></a></h2>
<p>For example, to enable saving command execution result, input the command below:</p>
<div class="highlight-default notranslate"><pre class="literal-block">$ options save-result true
NAME BEFORE-VALUE AFTER-VALUE
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>profiler &mdash; Arthas 3.1.5 documentation</title>
<title>profiler &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pwd &mdash; Arthas 3.1.5 documentation</title>
<title>pwd &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quick Start &mdash; Arthas 3.1.5 documentation</title>
<title>Quick Start &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>redefine &mdash; Arthas 3.1.5 documentation</title>
<title>redefine &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Release Notes &mdash; Arthas 3.1.5 documentation</title>
<title>Release Notes &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reset &mdash; Arthas 3.1.5 documentation</title>
<title>reset &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Log command outputs &mdash; Arthas 3.1.5 documentation</title>
<title>Log command outputs &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sc &mdash; Arthas 3.1.5 documentation</title>
<title>sc &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search &mdash; Arthas 3.1.5 documentation</title>
<title>Search &mdash; Arthas 3.1.7 documentation</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sm &mdash; Arthas 3.1.5 documentation</title>
<title>sm &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>stack &mdash; Arthas 3.1.5 documentation</title>
<title>stack &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Start Arthas &mdash; Arthas 3.1.5 documentation</title>
<title>Start Arthas &mdash; Arthas 3.1.7 documentation</title>
@@ -65,7 +65,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sysenv &mdash; Arthas 3.1.5 documentation</title>
<title>sysenv &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sysprop &mdash; Arthas 3.1.5 documentation</title>
<title>sysprop &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>thread &mdash; Arthas 3.1.5 documentation</title>
<title>thread &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+47 -33
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>trace &mdash; Arthas 3.1.5 documentation</title>
<title>trace &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
@@ -125,7 +125,7 @@
<li class="toctree-l4"><a class="reference internal" href="#start-demo">Start Demo</a></li>
<li class="toctree-l4"><a class="reference internal" href="#trace-method">trace method</a></li>
<li class="toctree-l4"><a class="reference internal" href="#trace-times-limit">trace times limit</a></li>
<li class="toctree-l4"><a class="reference internal" href="#ignore-jdk-method">Ignore jdk method</a></li>
<li class="toctree-l4"><a class="reference internal" href="#include-jdk-method">Include jdk method</a></li>
<li class="toctree-l4"><a class="reference internal" href="#filtering-by-cost">Filtering by cost</a></li>
<li class="toctree-l4"><a class="reference internal" href="#trace-multiple-classes-or-multiple-methods">trace multiple classes or multiple methods</a></li>
</ul>
@@ -283,13 +283,15 @@
<div class="section" id="trace-method">
<h3>trace method<a class="headerlink" href="#trace-method" title="Permalink to this headline"></a></h3>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ trace demo.MathGame run
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 42 ms.
`---ts=2018-12-04 00:44:17;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[10.611029ms] demo.MathGame:run()
+---[0.05638ms] java.util.Random:nextInt()
+---[10.036885ms] demo.MathGame:primeFactors()
`---[0.170316ms] demo.MathGame:print()</pre></div>
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 28 ms.
`---ts=2019-12-04 00:45:08;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.617465ms] demo.MathGame:run()
`---[0.078946ms] demo.MathGame:primeFactors() #24 [throws Exception]
`---ts=2019-12-04 00:45:09;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[1.276874ms] demo.MathGame:run()
`---[0.03752ms] demo.MathGame:primeFactors() #24 [throws Exception]</pre></div>
</div>
</div>
<div class="section" id="trace-times-limit">
@@ -297,35 +299,47 @@ Affect(class-cnt:1 , method-cnt:1) cost in 42 ms.
<p>If the method invoked many times, use <code class="docutils literal notranslate"><span class="pre">-n</span></code> options to specify trace times. For example, the command will exit when received a trace result.</p>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ trace demo.MathGame run -n 1
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 35 ms.
`---ts=2019-11-28 15:54:28;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.866311ms] demo.MathGame:run()
+---[0.044001ms] java.util.Random:nextInt() #23
+---[0.069037ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.003227ms] java.lang.StringBuilder:&lt;init&gt;() #28
+---[0.006155ms] java.lang.Integer:valueOf() #28
+---[0.071335ms] java.lang.String:format() #28
+---[min=0.002142ms,max=0.002237ms,total=0.004379ms,count=2] java.lang.StringBuilder:append() #28
+---[0.011072ms] java.lang.Exception:getMessage() #28
+---[0.006048ms] java.lang.StringBuilder:toString() #28
`---[0.084138ms] java.io.PrintStream:println() #28
Affect(class-cnt:1 , method-cnt:1) cost in 20 ms.
`---ts=2019-12-04 00:45:53;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[0.549379ms] demo.MathGame:run()
+---[0.059839ms] demo.MathGame:primeFactors() #24
`---[0.232887ms] demo.MathGame:print() #25
Command execution times exceed limit: 1, so command will exit. You can set it with -n option.</pre></div>
</div>
</div>
<div class="section" id="ignore-jdk-method">
<h3>Ignore jdk method<a class="headerlink" href="#ignore-jdk-method" title="Permalink to this headline"></a></h3>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ trace -j demo.MathGame run
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 31 ms.
`---ts=2018-12-04 01:09:14;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[5.190646ms] demo.MathGame:run()
+---[4.465779ms] demo.MathGame:primeFactors()
`---[0.375324ms] demo.MathGame:print()</pre></div>
</div>
<div class="section" id="include-jdk-method">
<h3>Include jdk method<a class="headerlink" href="#include-jdk-method" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">-j</span></code>: jdkMethodSkip, skip jdk method trace</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--skipJDKMethod</span> <span class="pre">&lt;value&gt;</span> </code> skip jdk method trace, default value true.</p></li>
</ul>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ trace --skipJDKMethod false demo.MathGame run
Press Q or Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 60 ms.
`---ts=2019-12-04 00:44:41;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[1.357742ms] demo.MathGame:run()
+---[0.028624ms] java.util.Random:nextInt() #23
+---[0.045534ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.005372ms] java.lang.StringBuilder:&lt;init&gt;() #28
+---[0.012257ms] java.lang.Integer:valueOf() #28
+---[0.234537ms] java.lang.String:format() #28
+---[min=0.004539ms,max=0.005778ms,total=0.010317ms,count=2] java.lang.StringBuilder:append() #28
+---[0.013777ms] java.lang.Exception:getMessage() #28
+---[0.004935ms] java.lang.StringBuilder:toString() #28
`---[0.06941ms] java.io.PrintStream:println() #28
`---ts=2019-12-04 00:44:42;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@3d4eac69
`---[3.030432ms] demo.MathGame:run()
+---[0.010473ms] java.util.Random:nextInt() #23
+---[0.023715ms] demo.MathGame:primeFactors() #24 [throws Exception]
+---[0.005198ms] java.lang.StringBuilder:&lt;init&gt;() #28
+---[0.006405ms] java.lang.Integer:valueOf() #28
+---[0.178583ms] java.lang.String:format() #28
+---[min=0.011636ms,max=0.838077ms,total=0.849713ms,count=2] java.lang.StringBuilder:append() #28
+---[0.008747ms] java.lang.Exception:getMessage() #28
+---[0.019768ms] java.lang.StringBuilder:toString() #28
`---[0.076457ms] java.io.PrintStream:println() #28</pre></div>
</div>
</div>
<div class="section" id="filtering-by-cost">
<h3>Filtering by cost<a class="headerlink" href="#filtering-by-cost" title="Permalink to this headline"></a></h3>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tt &mdash; Arthas 3.1.5 documentation</title>
<title>tt &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vmoption &mdash; Arthas 3.1.5 documentation</title>
<title>vmoption &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>watch &mdash; Arthas 3.1.5 documentation</title>
<title>watch &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Console &mdash; Arthas 3.1.5 documentation</title>
<title>Web Console &mdash; Arthas 3.1.7 documentation</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>索引 &mdash; Arthas 3.1.5 文档</title>
<title>索引 &mdash; Arthas 3.1.7 文档</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>getstatic &mdash; Arthas 3.1.5 文档</title>
<title>getstatic &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>grep &mdash; Arthas 3.1.5 文档</title>
<title>grep &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>groovy &mdash; Arthas 3.1.5 文档</title>
<title>groovy &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>heapdump &mdash; Arthas 3.1.5 文档</title>
<title>heapdump &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 用户文档 &mdash; Arthas 3.1.5 文档</title>
<title>Arthas 用户文档 &mdash; Arthas 3.1.7 文档</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas Install &mdash; Arthas 3.1.5 文档</title>
<title>Arthas Install &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jad &mdash; Arthas 3.1.5 文档</title>
<title>jad &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jvm &mdash; Arthas 3.1.5 文档</title>
<title>jvm &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arthas 命令行快捷键 &mdash; Arthas 3.1.5 文档</title>
<title>Arthas 命令行快捷键 &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>logger &mdash; Arthas 3.1.5 文档</title>
<title>logger &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>手动安装Arthas &mdash; Arthas 3.1.5 文档</title>
<title>手动安装Arthas &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mbean &mdash; Arthas 3.1.5 文档</title>
<title>mbean &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mc &mdash; Arthas 3.1.5 文档</title>
<title>mc &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>monitor &mdash; Arthas 3.1.5 文档</title>
<title>monitor &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ognl &mdash; Arthas 3.1.5 文档</title>
<title>ognl &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+63 -4
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>options &mdash; Arthas 3.1.5 文档</title>
<title>options &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
@@ -129,7 +129,9 @@
<li class="toctree-l2"><a class="reference internal" href="grep.html">grep</a></li>
<li class="toctree-l2"><a class="reference internal" href="pwd.html">pwd</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">options</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id1">使用说明</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id1">查看所有的options</a></li>
<li class="toctree-l3"><a class="reference internal" href="#option">获取option的值</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id2">设置指定的option</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="commands.html#arthas">Arthas 基础命令</a></li>
@@ -265,9 +267,66 @@
<td>1d</td>
<td>异步后台任务的默认超时时间,超过这个时间,任务自动停止;比如设置 1d, 2h, 3m, 25s,分别代表天、小时、分、秒</td>
</tr>
<tr>
<td>print-parent-fields</td>
<td>true</td>
<td>是否打印在parent class里的filed</td>
</tr>
</tbody>
</table><div class="section" id="id1">
<h2>使用说明<a class="headerlink" href="#id1" title="永久链接至标题"></a></h2>
<h2>查看所有的options<a class="headerlink" href="#id1" title="永久链接至标题"></a></h2>
<div class="highlight-bash notranslate"><div class="highlight hljs"><pre class="bash">$ options
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
0 bool unsafe false Option to support This option enables to proxy function
ean system-level class ality of JVM classes. Due to serious
security risk a JVM crash is possibly
be introduced. Do not activate it un
less you are able to manage.
1 bool dump false Option to dump the This option enables the enhanced clas
ean enhanced classes ses to be dumped to external file for
further de-compilation and analysis.
1 bool batch-re-tr true Option to support This options enables to reTransform c
ean ansform batch reTransform lasses with batch mode.
Class
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.
1 bool disable-sub false Option to control This option disable to include sub cl
ean -class include sub class ass when matching class.
when class matchin
g
1 bool debug-for-a false Option to print DE This option enables to print DEBUG me
ean sm BUG message if ASM ssage of ASM for each method invocati
is involved on.
1 bool save-result false Option to print co This option enables to save each comm
ean mmand&#x27;s result to and&#x27;s result to log file, which path
log file is ${user.home}/logs/arthas-cache/res
ult.log.
2 Stri job-timeout 1d Option to job time This option setting job timeout,The u
ng out nit can be d, h, m, s for day, hour,
minute, second. 1d is one day in defa
ult
1 bool print-paren true Option to print al This option enables print files in pa
ean t-fields l fileds in parent rent class, default value true.
class</pre></div>
</div>
</div>
<div class="section" id="option">
<h2>获取option的值<a class="headerlink" href="#option" title="永久链接至标题"></a></h2>
<div class="highlight-default notranslate"><pre class="literal-block">$ options json-format
LEVEL TYPE NAME VALUE SUMMARY DESCRIPTION
--------------------------------------------------------------------------------------------
2 bool json-format false Option to support This option enables to format object
ean JSON format of obj output with JSON when -x option selec
ect output ted.</pre>
</div>
<blockquote>
<div><p>默认情况下<code class="docutils literal notranslate"><span class="pre">json-format</span></code>为false,如果希望<code class="docutils literal notranslate"><span class="pre">watch</span></code>/<code class="docutils literal notranslate"><span class="pre">tt</span></code>等命令结果以json格式输出,则可以设置<code class="docutils literal notranslate"><span class="pre">json-format</span></code>为true。</p>
</div></blockquote>
</div>
<div class="section" id="id2">
<h2>设置指定的option<a class="headerlink" href="#id2" title="永久链接至标题"></a></h2>
<p>例如,想打开执行结果存日志功能,输入如下命令即可:</p>
<div class="highlight-default notranslate"><pre class="literal-block">$ options save-result true
NAME BEFORE-VALUE AFTER-VALUE
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>profiler &mdash; Arthas 3.1.5 文档</title>
<title>profiler &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pwd &mdash; Arthas 3.1.5 文档</title>
<title>pwd &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>快速入门 &mdash; Arthas 3.1.5 文档</title>
<title>快速入门 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>redefine &mdash; Arthas 3.1.5 文档</title>
<title>redefine &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Release Notes &mdash; Arthas 3.1.5 文档</title>
<title>Release Notes &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>reset命令 &mdash; Arthas 3.1.5 文档</title>
<title>reset命令 &mdash; Arthas 3.1.7 文档</title>
@@ -66,7 +66,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>执行结果存日志 &mdash; Arthas 3.1.5 文档</title>
<title>执行结果存日志 &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sc &mdash; Arthas 3.1.5 文档</title>
<title>sc &mdash; Arthas 3.1.7 文档</title>
@@ -68,7 +68,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+2 -2
View File
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>搜索 &mdash; Arthas 3.1.5 文档</title>
<title>搜索 &mdash; Arthas 3.1.7 文档</title>
@@ -67,7 +67,7 @@
<div class="version">
3.1.5
3.1.7
</div>
+1 -1
View File
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More