eclipse java Instrumentation
/**代理类*/
public class ObjectSizeAgent {
// java内部字节码处理调试叫为Instrumentation
private static Instrumentation inst;
public static void premain(String agentArgs, Instrumentation _inst) {
inst = _inst;
}
public static long sizeOf(Object o) {
return ins
原创
2021-08-26 16:47:16 ·
77 阅读 ·
0 评论