gintool / gin

GI in No Time - a Simple Microframework for Genetic Improvement
MIT License
43 stars 21 forks source link

Make sampling interval for Profiler and Memory Profiler configurable again #96

Open sandybrownlee opened 1 year ago

sandybrownlee commented 1 year ago

-hi or -hprofinterval in the profilers previously allowed the user to set an interval != 10ms. Since the change to JFR, the interval is now fixed at 10ms. The JFR argument ‘settings=profile’ changes from the default sample rate settings to a specific 10ms sample rate setting.

The oracle documentation mentions that there was some way to customise every JFR setting through a config file. They provide two documents with JDK the ‘default’ settings and the ‘profiling’ settings but it is possible to define your own; that would allow for changes to the sample rate, and also sampling more types of methods and more thread types.