allocation-instrumenter icon indicating copy to clipboard operation
allocation-instrumenter copied to clipboard

Dynamic load issue

Open bolunli11 opened this issue 4 years ago • 0 comments

Hi,

I'm using Allocation-instrumenter for some running Java process. Based on my understanding, the current allocation-instrumenter doesn't support dynamic load, because it only contains the premain method (please correct me if I'm wrong here).

To attach allocation-instrumenter to a running process, I created an agentmain method in AllocationInstrumenter.java. Now I can see that the Allocation-instrumenter's java agent has been attached to a running process successfully. However, the recordAllocation method won't be invoked during allocation. I'm wondering that does asm support this dynamic way to monitor allocations?

Thank you!

bolunli11 avatar Jan 17 '21 02:01 bolunli11