You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ watch com.taobao.container.Test test "params[0].{? #this.age > 10 }.size()" -x 2
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 29 ms.
@Integer[31]
@Integer[31]
判断字符串相等
比如第一个参数是String类型:
$ watch com.demo.Test test 'params[0]=="xyz"'
判断long型
$ watch com.demo.Test test 'params[0]==123456789L'
Hearen, kosmosr, limpidck, hyperion-thou, ShuangWeiLiu and 41 moreprivateGitLab, 407390911, 839284824, ZacBi and XiShuFanwentry11, 839284824 and XiShuFanchenshun00, SjLce, wentry11, 839284824, hehan-wang and 1 more
Activity
[-]Arthas的一些特殊用法需要文档说明[/-][+]Arthas的一些特殊用法文档说明[/+]hengyunabc commentedon Sep 19, 2018
查看第一个参数:
查看第一个参数的size:
将结果按name属性投影:
按条件过滤:
过滤后统计:
判断字符串相等
比如第一个参数是String类型:
判断long型
hengyunabc commentedon Sep 19, 2018
子表达式求值:
选择第一个满足条件:
选择最后一个满足条件:
hengyunabc commentedon Sep 19, 2018
访问静态变量
hengyunabc commentedon Sep 19, 2018
调用静态方法
调用静态方法再调用非静态方法
hengyunabc commentedon Sep 19, 2018
匹配线程&正则多个类多个方法
jieyuan-shen commentedon May 25, 2019
按条件过滤:
实际用下来,需要添加 .size()>0,并且条件表达式和返回表达式是两个表达式。
其中条件表达式, 如果是要对字符串做比较可以写成这样:
'params[0].{? #this.deviceKey =="KPmIDmPKMV"}.size()>0'
即,外面用单引号,里面是双引号。
jaime0815 commentedon Jul 29, 2019
内部类怎么使用
hengyunabc commentedon Jul 30, 2019
OuterClass$innerClassName
hengyunabc commentedon Aug 16, 2019
@leiguorui #482
leonHan01 commentedon Aug 28, 2019
一定要加 size()>0 才行,老哥thanks
77 remaining items