# 这些命令用于覆盖常见路径（查询类命令 + 触发增强命令），最后由 expect 脚本统一执行 stop。
help
version
session
dashboard -n 1
thread -n 3
sc -d demo.MathGame
sm demo.MathGame
jad demo.MathGame
watch demo.MathGame primeFactors "{params,returnObj,throwExp}" -n 1 -x 1
# trace 命令：追踪方法调用路径及耗时
trace demo.MathGame run -n 1
trace demo.MathGame primeFactors '#cost>0' -n 1
# ognl 命令：执行 OGNL 表达式
ognl '@java.lang.System@getProperty("java.version")'
ognl '@java.lang.Runtime@getRuntime().availableProcessors()'
ognl -x 2 '@java.lang.System@getProperties()'
# vmtool 命令：JVM 工具
vmtool --action getInstances --className demo.MathGame --limit 5
vmtool --action getInstances --className demo.MathGame --express 'instances.length'
vmtool --action forceGc
reset

