Skip to content

Commit 5fcbbc4

Browse files
authored
doc: add trace command limit default value desc (alibaba#2722)
1 parent e638b97 commit 5fcbbc4

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

site/docs/doc/trace.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
## 参数说明
1212

13-
| 参数名称 | 参数说明 |
14-
| ------------------: | :----------------------------------------------------------------- |
15-
| _class-pattern_ | 类名表达式匹配 |
16-
| _method-pattern_ | 方法名表达式匹配 |
17-
| _condition-express_ | 条件表达式 |
18-
| [E] | 开启正则表达式匹配,默认为通配符匹配 |
19-
| `[n:]` | 命令执行次数 |
20-
| `#cost` | 方法执行耗时 |
13+
| 参数名称 | 参数说明 |
14+
| ------------------: |:------------------------------------------------|
15+
| _class-pattern_ | 类名表达式匹配 |
16+
| _method-pattern_ | 方法名表达式匹配 |
17+
| _condition-express_ | 条件表达式 |
18+
| [E] | 开启正则表达式匹配,默认为通配符匹配 |
19+
| `[n:]` | 命令执行次数,默认值为 100。 |
20+
| `#cost` | 方法执行耗时 |
2121
| `[m <arg>]` | 指定 Class 最大匹配数量,默认值为 50。长格式为`[maxMatch <arg>]`|
2222

2323
这里重点要说明的是`条件表达式``条件表达式`的构成主要由 ognl 表达式组成,所以你可以这样写`"params[0]<0"`,只要是一个合法的 ognl 表达式,都能被正常支持。

site/docs/en/doc/trace.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Trace method calling path, and output the time cost for each node in the path.
1111
## Parameters
1212

1313
| Name | Specification |
14-
| ------------------: | :----------------------------------------------------------------------------------------------------- |
14+
| ------------------: |:-------------------------------------------------------------------------------------------------------|
1515
| _class-pattern_ | pattern for the class name |
1616
| _method-pattern_ | pattern for the method name |
1717
| _condition-express_ | condition expression |
1818
| `[E]` | enable regex match, the default behavior is wildcards match |
19-
| `[n:]` | execution times |
19+
| `[n:]` | execution times, the default value is 100. |
2020
| #cost | time cost |
2121
| `[m <arg>]` | Specify the max number of matched Classes, the default value is 50. Long format is `[maxMatch <arg>]`. |
2222

tutorials/katacoda/command-trace-cn/trace.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
### 参数说明
77

8-
|参数名称|参数说明|
9-
|---:|:---|
10-
|*class-pattern*|类名表达式匹配|
11-
|*method-pattern*|方法名表达式匹配|
12-
|*condition-express*|条件表达式|
13-
|[E]|开启正则表达式匹配,默认为通配符匹配|
14-
|`[n:]`|命令执行次数|
15-
|`#cost`|方法执行耗时|
8+
|参数名称| 参数说明 |
9+
|---:|:-------------------|
10+
|*class-pattern*| 类名表达式匹配 |
11+
|*method-pattern*| 方法名表达式匹配 |
12+
|*condition-express*| 条件表达式 |
13+
|[E]| 开启正则表达式匹配,默认为通配符匹配 |
14+
|`[n:]`| 命令执行次数, 默认值为100 |
15+
|`#cost`| 方法执行耗时 |
1616

1717
这里重点要说明的是观察表达式,观察表达式的构成主要由 ognl 表达式组成,所以你可以这样写`"{params,returnObj}"`,只要是一个合法的 ognl 表达式,都能被正常支持。
1818

tutorials/katacoda/command-trace-en/trace.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
### Parameters
77

8-
|Name|Specification|
9-
|---:|:---|
10-
|*class-pattern*|pattern for the class name|
11-
|*method-pattern*|pattern for the method name|
12-
|*condition-express*|condition expression|
13-
|`[E]`|enable regex match, the default behavior is wildcards match|
14-
|`[n:]`|execution times|
15-
|#cost|time cost|
8+
|Name| Specification |
9+
|---:|:------------------------------------------------------------|
10+
|*class-pattern*| pattern for the class name |
11+
|*method-pattern*| pattern for the method name |
12+
|*condition-express*| condition expression |
13+
|`[E]`| enable regex match, the default behavior is wildcards match |
14+
|`[n:]`| execution times, the default value is 100. |
15+
|#cost| time cost |
1616

1717
There's one thing worthy noting here is observation expression. The observation expression supports OGNL grammar, for example, you can come up a expression like this `"{params,returnObj}"`. All OGNL expressions are supported as long as they are legal to the grammar.
1818

0 commit comments

Comments
 (0)