1、输出日志(注意v0的数据类型,否则容易出错,说多了都是泪啊)
const-string v1,"TAG-KEY"
invoke-static {v1,v0},Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
2、栈追踪;只能在方法结束,换行最好
new-instance v0,Ljava/lang/Exception;
const-string v1, "Tracer"
invoke-direct{v0,v1},Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
invoke-virtual {v0},Ljava/lang/Exception;->printStackTrace()V
3、方法剖析
const-string v0,"method_checkCN()"
invoke-static{v0},Landroid/os/Debug;->startMethodTracing(Ljava/lang/String;)V
invoke-static{},Landroid/os/Debug;->stopMethodTracing()V