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
Because class 'HistogramMetric' doesn't implement Interface 'IDisposable' ,so disable a metricContext can not disable histogram, class 'HistogramMetric' have a field reservoir,if the reservoirs type is 'ExponentiallyDecayingReservoir', the memory will cant be release.
The text was updated successfully, but these errors were encountered:
Not true imho.
Call to MetricsContext.CompletelyDisableMetrics will clear all repositories -> HistogramMetric instances are not referenced anywhere and will be garbage collected together with its reservoirs. IDisposable is not needed most of the time in .NET unless you dealing with unmanaged resources....
@Liwoj@hinteadan ”ExponentiallyDecayingReservoir“ this reservorir have a "Scheduler", this "Scheduler" Could not be released and "HistogramMetric" do not implement the interface "IDisposable " , so the instance of the "HistogramMetric' cant be released,you can test to etishor/Metrics.NET#124
Because class 'HistogramMetric' doesn't implement Interface 'IDisposable' ,so disable a metricContext can not disable histogram, class 'HistogramMetric' have a field reservoir,if the reservoirs type is 'ExponentiallyDecayingReservoir', the memory will cant be release.
The text was updated successfully, but these errors were encountered: