Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak when looping #1

Open
mansandersson opened this issue Jul 16, 2012 · 1 comment
Open

Memory leak when looping #1

mansandersson opened this issue Jul 16, 2012 · 1 comment

Comments

@mansandersson
Copy link

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());
    }
}
@nootn
Copy link
Owner

nootn commented Mar 20, 2013

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

I will look into it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants