From 5fcbbc4a7826f044dfca849bc23f8e16fa2a2451 Mon Sep 17 00:00:00 2001 From: GGGGGHT Date: Tue, 14 Nov 2023 11:02:21 +0800 Subject: [PATCH] doc: add trace command limit default value desc (#2722) --- site/docs/doc/trace.md | 16 ++++++++-------- site/docs/en/doc/trace.md | 4 ++-- tutorials/katacoda/command-trace-cn/trace.md | 16 ++++++++-------- tutorials/katacoda/command-trace-en/trace.md | 16 ++++++++-------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/site/docs/doc/trace.md b/site/docs/doc/trace.md index a22816711d..4e1b530056 100644 --- a/site/docs/doc/trace.md +++ b/site/docs/doc/trace.md @@ -10,14 +10,14 @@ ## 参数说明 -| 参数名称 | 参数说明 | -| ------------------: | :----------------------------------------------------------------- | -| _class-pattern_ | 类名表达式匹配 | -| _method-pattern_ | 方法名表达式匹配 | -| _condition-express_ | 条件表达式 | -| [E] | 开启正则表达式匹配,默认为通配符匹配 | -| `[n:]` | 命令执行次数 | -| `#cost` | 方法执行耗时 | +| 参数名称 | 参数说明 | +| ------------------: |:------------------------------------------------| +| _class-pattern_ | 类名表达式匹配 | +| _method-pattern_ | 方法名表达式匹配 | +| _condition-express_ | 条件表达式 | +| [E] | 开启正则表达式匹配,默认为通配符匹配 | +| `[n:]` | 命令执行次数,默认值为 100。 | +| `#cost` | 方法执行耗时 | | `[m ]` | 指定 Class 最大匹配数量,默认值为 50。长格式为`[maxMatch ]`。 | 这里重点要说明的是`条件表达式`,`条件表达式`的构成主要由 ognl 表达式组成,所以你可以这样写`"params[0]<0"`,只要是一个合法的 ognl 表达式,都能被正常支持。 diff --git a/site/docs/en/doc/trace.md b/site/docs/en/doc/trace.md index 362bab3063..d3b6223dc1 100644 --- a/site/docs/en/doc/trace.md +++ b/site/docs/en/doc/trace.md @@ -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 ]` | Specify the max number of matched Classes, the default value is 50. Long format is `[maxMatch ]`. | diff --git a/tutorials/katacoda/command-trace-cn/trace.md b/tutorials/katacoda/command-trace-cn/trace.md index 9fd439ed2b..03f25696ca 100644 --- a/tutorials/katacoda/command-trace-cn/trace.md +++ b/tutorials/katacoda/command-trace-cn/trace.md @@ -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 表达式,都能被正常支持。 diff --git a/tutorials/katacoda/command-trace-en/trace.md b/tutorials/katacoda/command-trace-en/trace.md index 9ef71a6e06..e08d32daca 100644 --- a/tutorials/katacoda/command-trace-en/trace.md +++ b/tutorials/katacoda/command-trace-en/trace.md @@ -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.