software-challenge / backend

Server, Client und Spiel-Plugins der Software-Challenge Germany
https://www.software-challenge.de
12 stars 9 forks source link

feature(ActionTimeout): add garbage collection time tracking #418

Open maxblan opened 1 year ago

maxblan commented 1 year ago

This commit adds a new variable gcTime to the ActionTimeout class and subtracts it from the total time when calculating the time difference between the start and stop timestamps. The gcTime variable is calculated by iterating over the list of Garbage Collector MXBeans and summing up the collection times. This change improves the accuracy of the time tracking by accounting for the time spent in garbage collection.

These changes has not been tested, but are more a idea to be presended.

xeruf commented 1 year ago

Did not expect that this is even possible, interesting! But I think we have to wait for next season so we have sufficient time for testing in practice.