From 58f3f2a3cee1eaa9e0008da8128d95e85c1be1d7 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 8 Dec 2020 15:30:41 +0800 Subject: [PATCH] update trace.md --- site/src/site/sphinx/en/trace.md | 3 ++- site/src/site/sphinx/trace.md | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/site/src/site/sphinx/en/trace.md b/site/src/site/sphinx/en/trace.md index 55b091cc..e8e75bee 100644 --- a/site/src/site/sphinx/en/trace.md +++ b/site/src/site/sphinx/en/trace.md @@ -59,6 +59,7 @@ Affect(class-cnt:1 , method-cnt:1) cost in 28 ms. `---[0.03752ms] demo.MathGame:primeFactors() #24 [throws Exception] ``` +> The `#24` in the result indicates that in the run function, the `primeFactors()` function was called on line `24` of the source file. #### Trace times limit @@ -145,7 +146,7 @@ Trace -E com.test.ClassA|org.test.ClassB method1|method2|method3 > Supported since version 3.3.0. -Open terminal 1, trace the `run` method, and you can see the printout `listenerId: 1` . +Open terminal 1, trace the `run` method in the above demo, and you can see the printout `listenerId: 1` . ```bash [arthas@59161]$ trace demo.MathGame run diff --git a/site/src/site/sphinx/trace.md b/site/src/site/sphinx/trace.md index fd8dda49..ab3010e9 100644 --- a/site/src/site/sphinx/trace.md +++ b/site/src/site/sphinx/trace.md @@ -63,6 +63,8 @@ Affect(class-cnt:1 , method-cnt:1) cost in 28 ms. `---[0.03752ms] demo.MathGame:primeFactors() #24 [throws Exception] ``` +> 结果里的 `#24`,表示在run函数里,在源文件的第`24`行调用了`primeFactors()`函数。 + #### trace次数限制 如果方法调用的次数很多,那么可以用`-n`参数指定捕捉结果的次数。比如下面的例子里,捕捉到一次调用就退出命令。 @@ -147,10 +149,10 @@ trace -E com.test.ClassA|org.test.ClassB method1|method2|method3 ### 动态trace -3.3.0 版本后支持。 +> 3.3.0 版本后支持。 -打开终端1,trace `run`函数,可以看到打印出 `listenerId: 1`: +打开终端1,trace上面demo里的`run`函数,可以看到打印出 `listenerId: 1`: ```bash [arthas@59161]$ trace demo.MathGame run