c*n
2 楼
I have a jar that contains a Blah class
and in Blah() ctor it somehow calls System.gc()
now let's say I use the jar that contains Blah(), and call new Blah().
I would get the gc(), so I am trying to detect this call ----- I'm not sure
where it called the "new Blah()" and System.gc() . I'm trying to do
through aspectj, by doing a pointcut on System.gc
but the problem is, now if I include the Blah() implementation in my code,
it's able to detect it, but if I just include the Blah() jar, it can't weave
and detect it.
I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
Thanks
and in Blah() ctor it somehow calls System.gc()
now let's say I use the jar that contains Blah(), and call new Blah().
I would get the gc(), so I am trying to detect this call ----- I'm not sure
where it called the "new Blah()" and System.gc() . I'm trying to do
through aspectj, by doing a pointcut on System.gc
but the problem is, now if I include the Blah() implementation in my code,
it's able to detect it, but if I just include the Blah() jar, it can't weave
and detect it.
I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
Thanks
T*g
4 楼
any detail for ur pointcut, advice, and eng?
sure
weave
【在 c******n 的大作中提到】
: I have a jar that contains a Blah class
: and in Blah() ctor it somehow calls System.gc()
: now let's say I use the jar that contains Blah(), and call new Blah().
: I would get the gc(), so I am trying to detect this call ----- I'm not sure
: where it called the "new Blah()" and System.gc() . I'm trying to do
: through aspectj, by doing a pointcut on System.gc
: but the problem is, now if I include the Blah() implementation in my code,
: it's able to detect it, but if I just include the Blah() jar, it can't weave
: and detect it.
: I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
sure
weave
【在 c******n 的大作中提到】
: I have a jar that contains a Blah class
: and in Blah() ctor it somehow calls System.gc()
: now let's say I use the jar that contains Blah(), and call new Blah().
: I would get the gc(), so I am trying to detect this call ----- I'm not sure
: where it called the "new Blah()" and System.gc() . I'm trying to do
: through aspectj, by doing a pointcut on System.gc
: but the problem is, now if I include the Blah() implementation in my code,
: it's able to detect it, but if I just include the Blah() jar, it can't weave
: and detect it.
: I tried adding the -javaagent:aspectjweaver.jar , but it doesn't work
相关阅读
如何提高一个java写的程序的运行效率Applescript 怎么传递文件路径 (转载)毕向东老师上课那个视频相关的程序哪里可以下载?Java的readability不佳请教:如何用java调用外部函数,更新数据库?真诚找个男朋友linkedlist 长度计算?学习Core Java的资源如何快速处理大量网上xml文件? (转载)问个 Maven 的问题甩卖以下个人物品C++ JNI code to invoke native method – header an (转载)Find maximum palindromejava初学者请教如何将netbean装在闪存上包子求oracle java certification机经我试了一下,马上就喜欢上了有个阿三来电面,求面试题entry level java positions-contractorAnybody knows Code quality analysis tool for eclipse项目找合伙人