print affect class/method count more clear. close #1191

pull/1200/head
hengyunabc 5 years ago
parent a7ec69b178
commit e92047cda2

@ -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()));

Loading…
Cancel
Save