I have a java desktop app that uses jni to access some DLLs. This app runs on Windows+Intel as well as Windows+AMD. The DLLs are from VC++ code. I want to see the step by step CPU metrics as well as memory consumption levels (hotspots).

I have just purchases VTune and JProfiler. 1. But if I want an end-to-end correlated hotspot collection, I am unable to figure out a way. 2. Also, VTune does not seem to work for AMD processors.

Looking for any advanced tips related to this issue.