watch_method
Monitor Java method calls in real-time by specifying class and method patterns, track parameters and return values, and set custom conditions for detailed JVM process analysis.
Instructions
监控方法的调用情况
Input Schema
Name | Required | Description | Default |
---|---|---|---|
class_pattern | Yes | ||
condition | No | ||
max_times | No | ||
method_pattern | Yes | ||
pid | Yes | ||
watch_params | No | ||
watch_return | No |
Input Schema (JSON Schema)
{
"properties": {
"class_pattern": {
"title": "Class Pattern",
"type": "string"
},
"condition": {
"default": null,
"title": "Condition",
"type": "string"
},
"max_times": {
"default": 10,
"title": "Max Times",
"type": "integer"
},
"method_pattern": {
"title": "Method Pattern",
"type": "string"
},
"pid": {
"title": "Pid",
"type": "integer"
},
"watch_params": {
"default": true,
"title": "Watch Params",
"type": "boolean"
},
"watch_return": {
"default": true,
"title": "Watch Return",
"type": "boolean"
}
},
"required": [
"pid",
"class_pattern",
"method_pattern"
],
"title": "watch_methodArguments",
"type": "object"
}