HotswapProjects / HotswapAgent

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

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

Closed homejim closed 6 days ago

homejim commented 1 week 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 week ago

@skybber Do you have any suggestions?

skybber commented 1 week 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 6 days 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