MiniProfiler.Windows
MiniProfiler.Windows copied to clipboard
Memory leak when looping
I'm using MiniProfiler.Windows in a while loop to measure the execution time of each iteration. The memory consumption of this program is quickly getting out of control (have seen upwards of 600mb extra memory in just a couple of minutes). When I stopped using MiniProfiler.Windows it all got back to the way it was. Either I'm missing some cleanup code, or there is a bug in MiniProfiler.Windows.
An example
public void HandleIncomingData()
{
while(true)
{
ConsoleProfiling.Start();
// Do some data processing here...
Console.WriteLine(ConsoleProfiling.StopAndGetConsoleFriendlyOutputStringWithSqlTimings());
}
}
I am so sorry for the delay in responding - I have only just noticed this issue!
I will look into it soon.