Skip to content

Commit

Permalink
doc: add trace command limit default value desc (#2722)
Browse files Browse the repository at this point in the history
  • Loading branch information
GGGGGHT authored Nov 14, 2023
1 parent e638b97 commit 5fcbbc4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
16 changes: 8 additions & 8 deletions site/docs/doc/trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

## 参数说明

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

这里重点要说明的是`条件表达式``条件表达式`的构成主要由 ognl 表达式组成,所以你可以这样写`"params[0]<0"`,只要是一个合法的 ognl 表达式,都能被正常支持。
Expand Down
4 changes: 2 additions & 2 deletions site/docs/en/doc/trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Trace method calling path, and output the time cost for each node in the path.
## Parameters

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

Expand Down
16 changes: 8 additions & 8 deletions tutorials/katacoda/command-trace-cn/trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

### 参数说明

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

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

Expand Down
16 changes: 8 additions & 8 deletions tutorials/katacoda/command-trace-en/trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

### Parameters

|Name|Specification|
|---:|:---|
|*class-pattern*|pattern for the class name|
|*method-pattern*|pattern for the method name|
|*condition-express*|condition expression|
|`[E]`|enable regex match, the default behavior is wildcards match|
|`[n:]`|execution times|
|#cost|time cost|
|Name| Specification |
|---:|:------------------------------------------------------------|
|*class-pattern*| pattern for the class name |
|*method-pattern*| pattern for the method name |
|*condition-express*| condition expression |
|`[E]`| enable regex match, the default behavior is wildcards match |
|`[n:]`| execution times, the default value is 100. |
|#cost| time cost |

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.

Expand Down

0 comments on commit 5fcbbc4

Please sign in to comment.