HotswapProjects / HotswapAgent

Java unlimited redefinition of classes at runtime.
GNU General Public License v2.0
2.36k stars 493 forks source link

How to measure the time for each hot reload? #592

Closed homejim closed 1 month ago

homejim commented 1 month ago

I want to measure the time taken for each hot reload. For example, when I modify A.java, how much time in total is spent by hotswapagent in processing it?

homejim commented 1 month ago

@skybber Do you have any suggestions?

skybber commented 1 month ago

You can use -Xlog:redefine+class*=info to see how much time it spends in dcevm, but there are no time measures in HotswapAgent. It also depends, which HotswapAgent are you using. In many cases plugins triggers secondary redefinition after primary redefinition after some timeout, depending on plugin, it can be 0.5-2s.

homejim commented 1 month ago

You can use -Xlog:redefine+class*=info to see how much time it spends in dcevm, but there are no time measures in HotswapAgent. It also depends, which HotswapAgent are you using. In many cases plugins triggers secondary redefinition after primary redefinition after some timeout, depending on plugin, it can be 0.5-2s.

thanks