mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-14 06:45:19 +00:00
update OGNL links. fix #60
This commit is contained in:
1 parent
194e7b9624
commit
e1600e10b7
5 files changed
+12
-21
No files matched your search
@@ -23,11 +23,10 @@ public class Advice {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
这里列一个表格来说明不同变量的含义
|
||||
|
||||
|
||||
|变量名|变量解释|
|
||||
|---|---|
|
||||
|---:|:---|
|
||||
|loader|本次调用类所在的 ClassLoader|
|
||||
|clazz|本次调用类的 Class 引用|
|
||||
|method|本次调用方法反射引用|
|
||||
@@ -41,13 +40,8 @@ public class Advice {
|
||||
|
||||
所有变量都可以在表达式中直接使用,如果在表达式中编写了不符合 OGNL 脚本语法或者引入了不在表格中的变量,则退出命令的执行;用户可以根据当前的异常信息修正`条件表达式`或`观察表达式`
|
||||
|
||||
> OGNL表达式官网:https://commons.apache.org/proper/commons-ognl/language-guide.html
|
||||
|
||||
> 一些特殊的用法:
|
||||
|
||||
TODO
|
||||
|
||||
middleware-container/arthas/issues/263
|
||||
* 特殊用法请参考:[https://github.com/alibaba/arthas/issues/71](https://github.com/alibaba/arthas/issues/71)
|
||||
* OGNL表达式官网:[https://commons.apache.org/proper/commons-ognl/language-guide.html](https://commons.apache.org/proper/commons-ognl/language-guide.html)
|
||||
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ stack
|
||||
|
||||
请参考[表达式核心变量](advice-class.md)中关于该节点的描述。
|
||||
|
||||
* 特殊用法请参考:TODO middleware-container/arthas/issues/263
|
||||
* OGNL表达式官网:https://commons.apache.org/proper/commons-ognl/language-guide.html
|
||||
* 特殊用法请参考:[https://github.com/alibaba/arthas/issues/71](https://github.com/alibaba/arthas/issues/71)
|
||||
* OGNL表达式官网:[https://commons.apache.org/proper/commons-ognl/language-guide.html](https://commons.apache.org/proper/commons-ognl/language-guide.html)
|
||||
|
||||
### 使用例子
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ trace
|
||||
|
||||
请参考[表达式核心变量](advice-class.md)中关于该节点的描述。
|
||||
|
||||
* 特殊用法请参考:TODO middleware-container/arthas/issues/263
|
||||
* OGNL表达式官网:https://commons.apache.org/proper/commons-ognl/language-guide.html
|
||||
* 特殊用法请参考:[https://github.com/alibaba/arthas/issues/71](https://github.com/alibaba/arthas/issues/71)
|
||||
* OGNL表达式官网:[https://commons.apache.org/proper/commons-ognl/language-guide.html](https://commons.apache.org/proper/commons-ognl/language-guide.html)
|
||||
|
||||
很多时候我们只想看到某个方法的rt大于某个时间之后的trace结果,现在Arthas可以按照方法执行的耗时来进行过滤了,例如`trace *StringUtils isBlank '$cost>100'`表示当执行时间超过100ms的时候,才会输出trace的结果。
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ tt
|
||||
|COST(ms)|方法执行的耗时|
|
||||
|IS-RET|方法是否以正常返回的形式结束|
|
||||
|IS-EXP|方法是否以抛异常的形式结束|
|
||||
|OBJECT|执行对象的`hashCode()`,注意,曾经有人误认为是对象在JVM中的无力内存地址,但很遗憾他不是。但他能帮助你简单的标记当前执行方法的类实体|
|
||||
|OBJECT|执行对象的`hashCode()`,注意,曾经有人误认为是对象在JVM中的内存地址,但很遗憾他不是。但他能帮助你简单的标记当前执行方法的类实体|
|
||||
|CLASS|执行的类名|
|
||||
|METHOD|执行的方法名|
|
||||
|
||||
|
||||
@@ -24,13 +24,10 @@ watch 的参数比较多,主要是因为它能在 4 个不同的场景观察
|
||||
|
||||
这里重点要说明的是观察表达式,观察表达式的构成主要由 ognl 表达式组成,所以你可以这样写`"{params,returnObj}"`,只要是一个合法的 ognl 表达式,都能被正常支持。
|
||||
|
||||
观察的维度也比较多,主要体现在参数 `advice` 的数据结构上。`Advice` 参数最主要是封装了通知节点的所有信息。
|
||||
观察的维度也比较多,主要体现在参数 `advice` 的数据结构上。`Advice` 参数最主要是封装了通知节点的所有信息。请参考[表达式核心变量](advice-class.md)中关于该节点的描述。
|
||||
|
||||
|
||||
请参考[表达式核心变量](advice-class.md)中关于该节点的描述。
|
||||
|
||||
* 特殊用法请参考:TODO middleware-container/arthas/issues/263
|
||||
* OGNL表达式官网:https://commons.apache.org/proper/commons-ognl/language-guide.html
|
||||
* 特殊用法请参考:[https://github.com/alibaba/arthas/issues/71](https://github.com/alibaba/arthas/issues/71)
|
||||
* OGNL表达式官网:[https://commons.apache.org/proper/commons-ognl/language-guide.html](https://commons.apache.org/proper/commons-ognl/language-guide.html)
|
||||
|
||||
**特别说明**:
|
||||
|
||||
|
||||
Reference in new issue
Block a user