You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I can calculate the wallclock time taken by GC using clock_gettime(), but I no longer have the user/sys split that rusage has. As such, these timings don't really fit into the GC rusage. Any thoughts on this?
A couple options:
keep both -- The GC rusage remains, but is imprecise (perhaps to the point of being useless). Add additional MLton.GC.Statistics functions that return time taken.
fold the result from clock_gettime() into the rusage, perhaps as the user field. This is most transparent since the API remains unchanged, but the rusage data is now wrong, since all GC time will be in the user slot.
shwestrick
changed the title
Fix GC time measuring
Fix GC Statistics and time measuring
Dec 6, 2019
getrusage(RUSAGE_THREAD, ...)
is too low precision to get accurate GC times.The text was updated successfully, but these errors were encountered: