mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
print affect class/method count more clear. close #1191
This commit is contained in:
@@ -120,7 +120,7 @@ public abstract class EnhancerCommand extends AnnotatedCommand {
|
||||
if (effect.cCnt() == 0 || effect.mCnt() == 0) {
|
||||
// no class effected
|
||||
// might be method code too large
|
||||
process.write("Matched class-cnt: " + effect.cCnt() + ", method-cnt: " + effect.mCnt() + "\n");
|
||||
process.write("Matched class count: " + effect.cCnt() + ", method count: " + effect.mCnt() + "\n");
|
||||
process.write("No class or method is affected, try:\n"
|
||||
+ "1. sm CLASS_NAME METHOD_NAME to make sure the method you are tracing actually exists (it might be in your parent class).\n"
|
||||
+ "2. reset CLASS_NAME and try again, your method body might be too large.\n"
|
||||
|
||||
@@ -93,7 +93,7 @@ public final class EnhancerAffect extends Affect {
|
||||
infoSB.append("[dump: ").append(classDumpFile.getAbsoluteFile()).append("]\n");
|
||||
}
|
||||
}
|
||||
infoSB.append(format("Affect(class-cnt:%d , method-cnt:%d) cost in %s ms.",
|
||||
infoSB.append(format("Affect(class count:%d , method count:%d) cost in %s ms.",
|
||||
cCnt(),
|
||||
mCnt(),
|
||||
cost()));
|
||||
|
||||
Reference in New Issue
Block a user