get_stack_trace_by_method
Trace the call path of specific methods in Java processes by specifying process ID, class/method patterns, and conditions for targeted debugging and performance analysis.
Instructions
获取方法的调用路径
Args:
pid: 进程ID
class_pattern: 类名表达式匹配
method_pattern: 方法名表达式匹配
condition: 条件表达式,例如:'params[0]<0' 或 '#cost>10'
use_regex: 是否开启正则表达式匹配,默认为通配符匹配
max_matches: 指定Class最大匹配数量,默认值为50
max_times: 执行次数限制
Input Schema
Name | Required | Description | Default |
---|---|---|---|
class_pattern | Yes | ||
condition | No | ||
max_matches | No | ||
max_times | No | ||
method_pattern | Yes | ||
pid | Yes | ||
use_regex | No |
Input Schema (JSON Schema)
{
"properties": {
"class_pattern": {
"title": "Class Pattern",
"type": "string"
},
"condition": {
"default": null,
"title": "Condition",
"type": "string"
},
"max_matches": {
"default": null,
"title": "Max Matches",
"type": "integer"
},
"max_times": {
"default": null,
"title": "Max Times",
"type": "integer"
},
"method_pattern": {
"title": "Method Pattern",
"type": "string"
},
"pid": {
"title": "Pid",
"type": "integer"
},
"use_regex": {
"default": false,
"title": "Use Regex",
"type": "boolean"
}
},
"required": [
"pid",
"class_pattern",
"method_pattern"
],
"title": "get_stack_trace_by_methodArguments",
"type": "object"
}