MiniProfiler.Windows icon indicating copy to clipboard operation
MiniProfiler.Windows copied to clipboard

Memory leak when looping

Open mansandersson opened this issue 12 years ago • 1 comments

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());
    }
}

mansandersson avatar Jul 16 '12 08:07 mansandersson

I am so sorry for the delay in responding - I have only just noticed this issue!

I will look into it soon.

nootn avatar Mar 20 '13 06:03 nootn