mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
release 3.1.7
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title><no title> — Arthas 3.1.5 文档</title>
|
||||
<title><no title> — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+57
-1
@@ -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
@@ -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,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
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>进阶使用 — Arthas 3.1.5 文档</title>
|
||||
<title>进阶使用 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>表达式核心变量 — Arthas 3.1.5 文档</title>
|
||||
<title>表达式核心变量 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas3.0的新特性 — Arthas 3.1.5 文档</title>
|
||||
<title>Arthas3.0的新特性 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas 3.0新特性介绍 — Arthas 3.1.5 文档</title>
|
||||
<title>Arthas 3.0新特性介绍 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas异步调用 — Arthas 3.1.5 文档</title>
|
||||
<title>Arthas异步调用 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>批处理功能 — Arthas 3.1.5 文档</title>
|
||||
<title>批处理功能 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>cat — Arthas 3.1.5 文档</title>
|
||||
<title>cat — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>classloader — Arthas 3.1.5 文档</title>
|
||||
<title>classloader — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>命令列表 — Arthas 3.1.5 文档</title>
|
||||
<title>命令列表 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>联系我们 — Arthas 3.1.5 文档</title>
|
||||
<title>联系我们 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>dashboard — Arthas 3.1.5 文档</title>
|
||||
<title>dashboard — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Docker — Arthas 3.1.5 文档</title>
|
||||
<title>Docker — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>下载 — Arthas 3.1.5 文档</title>
|
||||
<title>下载 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>dump — Arthas 3.1.5 文档</title>
|
||||
<title>dump — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title><no title> — Arthas 3.1.5 documentation</title>
|
||||
<title><no title> — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -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
@@ -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,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',
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Advanced Usage — Arthas 3.1.5 documentation</title>
|
||||
<title>Advanced Usage — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Fundamental Fields in Expressions — Arthas 3.1.5 documentation</title>
|
||||
<title>Fundamental Fields in Expressions — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas Async Jobs — Arthas 3.1.5 documentation</title>
|
||||
<title>Arthas Async Jobs — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Batch Processing — Arthas 3.1.5 documentation</title>
|
||||
<title>Batch Processing — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>cat — Arthas 3.1.5 documentation</title>
|
||||
<title>cat — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>classloader — Arthas 3.1.5 documentation</title>
|
||||
<title>classloader — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>All Commands — Arthas 3.1.5 documentation</title>
|
||||
<title>All Commands — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>dashboard — Arthas 3.1.5 documentation</title>
|
||||
<title>dashboard — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Docker — Arthas 3.1.5 documentation</title>
|
||||
<title>Docker — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Download — Arthas 3.1.5 documentation</title>
|
||||
<title>Download — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>dump — Arthas 3.1.5 documentation</title>
|
||||
<title>dump — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Index — Arthas 3.1.5 documentation</title>
|
||||
<title>Index — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>getstatic — Arthas 3.1.5 documentation</title>
|
||||
<title>getstatic — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>grep — Arthas 3.1.5 documentation</title>
|
||||
<title>grep — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>groovy — Arthas 3.1.5 documentation</title>
|
||||
<title>groovy — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>heapdump — Arthas 3.1.5 documentation</title>
|
||||
<title>heapdump — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas Documentation — Arthas 3.1.5 documentation</title>
|
||||
<title>Arthas Documentation — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Install Arthas — Arthas 3.1.5 documentation</title>
|
||||
<title>Install Arthas — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>jad — Arthas 3.1.5 documentation</title>
|
||||
<title>jad — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>jvm — Arthas 3.1.5 documentation</title>
|
||||
<title>jvm — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas Console Keymap — Arthas 3.1.5 documentation</title>
|
||||
<title>Arthas Console Keymap — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>logger — Arthas 3.1.5 documentation</title>
|
||||
<title>logger — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Manually Install Arthas — Arthas 3.1.5 documentation</title>
|
||||
<title>Manually Install Arthas — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>mbean — Arthas 3.1.5 documentation</title>
|
||||
<title>mbean — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>mc — Arthas 3.1.5 documentation</title>
|
||||
<title>mc — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>monitor — Arthas 3.1.5 documentation</title>
|
||||
<title>monitor — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>ognl — Arthas 3.1.5 documentation</title>
|
||||
<title>ognl — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+59
-5
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>options — Arthas 3.1.5 documentation</title>
|
||||
<title>options — 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'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</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
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>profiler — Arthas 3.1.5 documentation</title>
|
||||
<title>profiler — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>pwd — Arthas 3.1.5 documentation</title>
|
||||
<title>pwd — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Quick Start — Arthas 3.1.5 documentation</title>
|
||||
<title>Quick Start — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>redefine — Arthas 3.1.5 documentation</title>
|
||||
<title>redefine — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Release Notes — Arthas 3.1.5 documentation</title>
|
||||
<title>Release Notes — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>reset — Arthas 3.1.5 documentation</title>
|
||||
<title>reset — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Log command outputs — Arthas 3.1.5 documentation</title>
|
||||
<title>Log command outputs — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>sc — Arthas 3.1.5 documentation</title>
|
||||
<title>sc — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Search — Arthas 3.1.5 documentation</title>
|
||||
<title>Search — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>sm — Arthas 3.1.5 documentation</title>
|
||||
<title>sm — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>stack — Arthas 3.1.5 documentation</title>
|
||||
<title>stack — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Start Arthas — Arthas 3.1.5 documentation</title>
|
||||
<title>Start Arthas — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>sysenv — Arthas 3.1.5 documentation</title>
|
||||
<title>sysenv — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>sysprop — Arthas 3.1.5 documentation</title>
|
||||
<title>sysprop — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>thread — Arthas 3.1.5 documentation</title>
|
||||
<title>thread — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+47
-33
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>trace — Arthas 3.1.5 documentation</title>
|
||||
<title>trace — 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:<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.</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"><value></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:<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
|
||||
|
||||
`---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</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
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>tt — Arthas 3.1.5 documentation</title>
|
||||
<title>tt — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>vmoption — Arthas 3.1.5 documentation</title>
|
||||
<title>vmoption — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>watch — Arthas 3.1.5 documentation</title>
|
||||
<title>watch — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Web Console — Arthas 3.1.5 documentation</title>
|
||||
<title>Web Console — Arthas 3.1.7 documentation</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>索引 — Arthas 3.1.5 文档</title>
|
||||
<title>索引 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>getstatic — Arthas 3.1.5 文档</title>
|
||||
<title>getstatic — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>grep — Arthas 3.1.5 文档</title>
|
||||
<title>grep — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>groovy — Arthas 3.1.5 文档</title>
|
||||
<title>groovy — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>heapdump — Arthas 3.1.5 文档</title>
|
||||
<title>heapdump — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas 用户文档 — Arthas 3.1.5 文档</title>
|
||||
<title>Arthas 用户文档 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas Install — Arthas 3.1.5 文档</title>
|
||||
<title>Arthas Install — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>jad — Arthas 3.1.5 文档</title>
|
||||
<title>jad — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>jvm — Arthas 3.1.5 文档</title>
|
||||
<title>jvm — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Arthas 命令行快捷键 — Arthas 3.1.5 文档</title>
|
||||
<title>Arthas 命令行快捷键 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>logger — Arthas 3.1.5 文档</title>
|
||||
<title>logger — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>手动安装Arthas — Arthas 3.1.5 文档</title>
|
||||
<title>手动安装Arthas — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>mbean — Arthas 3.1.5 文档</title>
|
||||
<title>mbean — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>mc — Arthas 3.1.5 文档</title>
|
||||
<title>mc — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>monitor — Arthas 3.1.5 文档</title>
|
||||
<title>monitor — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
BIN
Binary file not shown.
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>ognl — Arthas 3.1.5 文档</title>
|
||||
<title>ognl — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+63
-4
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>options — Arthas 3.1.5 文档</title>
|
||||
<title>options — 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'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</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
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>profiler — Arthas 3.1.5 文档</title>
|
||||
<title>profiler — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>pwd — Arthas 3.1.5 文档</title>
|
||||
<title>pwd — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>快速入门 — Arthas 3.1.5 文档</title>
|
||||
<title>快速入门 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>redefine — Arthas 3.1.5 文档</title>
|
||||
<title>redefine — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Release Notes — Arthas 3.1.5 文档</title>
|
||||
<title>Release Notes — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>reset命令 — Arthas 3.1.5 文档</title>
|
||||
<title>reset命令 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>执行结果存日志 — Arthas 3.1.5 文档</title>
|
||||
<title>执行结果存日志 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>sc — Arthas 3.1.5 文档</title>
|
||||
<title>sc — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>搜索 — Arthas 3.1.5 文档</title>
|
||||
<title>搜索 — Arthas 3.1.7 文档</title>
|
||||
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
|
||||
<div class="version">
|
||||
3.1.5
|
||||
3.1.7
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
+1
-1
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
Reference in New Issue
Block a user