tt command support cost time/--replay-times/--replay-interval (#498)

This commit is contained in:
superheizai authored and hengyunabc committed 2019-02-13 14:02:44 +08:00
1 parent 7bcd81d338
commit 6a584022a0
5 files changed
+66 -25

No files matched your search

+2 -1
View File
@@ -127,7 +127,8 @@ Affect(row-cnt:1) cost in 11 ms.
### Replay record
Since Arthas stores the context of the call, you can even *replay* the method calling afterwards with extra option `-p` to replay the issue for advanced troubleshooting.
Since Arthas stores the context of the call, you can even *replay* the method calling afterwards with extra option `-p` to replay the issue for advanced troubleshooting, option `--replay-times`
define the replay execution times, option `--replay-interval` define the interval(unit in ms,with default value 1000) of replays
```bash
$ tt -i 1004 -p
+3 -1
View File
@@ -147,7 +147,8 @@ Affect(row-cnt:1) cost in 11 ms.
当你稍稍做了一些调整之后,你可能需要前端系统重新触发一次你的调用,此时得求爷爷告奶奶的需要前端配合联调的同学再次发起一次调用。而有些场景下,这个调用不是这么好触发的。
`tt` 命令由于保存了当时调用的所有现场信息,所以我们可以自己主动对一个 `INDEX` 编号的时间片自主发起一次调用,从而解放你的沟通成本。此时你需要 `-p` 参数。
`tt` 命令由于保存了当时调用的所有现场信息,所以我们可以自己主动对一个 `INDEX` 编号的时间片自主发起一次调用,从而解放你的沟通成本。此时你需要 `-p` 参数。通过 `--replay-times` 指定
调用次数,通过 `--replay-interval` 指定多次调用间隔(单位ms, 默认1000ms)
```bash
$ tt -i 1004 -p
@@ -159,6 +160,7 @@ $ tt -i 1004 -p
PARAMETERS[0] @Integer[946738738]
IS-RETURN true
IS-EXCEPTION false
COST(ms) 0.186073
RETURN-OBJ @ArrayList[
@Integer[2],
@Integer[11],