alibaba / alibaba/arthas

watch命令在verbose模式下,打印更多信息

Open
#2,131 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

比如:

```
$ watch java.lang.Exception *
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 1) cost in 13437 ms, listenerId: 1
```

实际上,很多类被过滤掉了,查看`~/logs/arthas/arthas.log`,可以 发现:

```
2022-03-24 10:48:17 [arthas-command-execute] INFO c.t.arthas.core.advisor.Enhancer -ignore class: java.lang.IllegalAccessException, reason: class loaded by Bootstrap Classloader, try to execute `options unsafe true`
```

可以考虑把过滤掉的类和最终增强的类都打印出来。

Contributor guide

Open the contributing guide

Research direction

Start by tracing the watch command's verbose output and the Enhancer log entries shown in the issue, including the `options unsafe true` path. Determine where filtered classes and successfully enhanced classes are available, then verify that verbose mode reports both while normal mode remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.