NetBeans profiler needs an approach equivalent to NativeMethodBind, if the profiler agent attaches via the new late attach mechanism.
We use NtiveMethodBind to intercept Thread.sleep and Object.wait, to be able to determine time spent waiting/sleeping. In the case of late attach, we would not be able to use NativeMethodBind. JNI's Unregister/RegisterNatives seems to be the way to go, but we have no way to determine the current binding to be ablel to reroute it.
We use NtiveMethodBind to intercept Thread.sleep and Object.wait, to be able to determine time spent waiting/sleeping. In the case of late attach, we would not be able to use NativeMethodBind. JNI's Unregister/RegisterNatives seems to be the way to go, but we have no way to determine the current binding to be ablel to reroute it.
- duplicates
-
JDK-6404550 Cannot implement late attach in NetBeans Profiler due to missing functionality in JVMTI
-
- Resolved
-