Giter Club home page Giter Club logo

miniprofiler.windows's People

Contributors

erikderoos avatar nootn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

miniprofiler.windows's Issues

Can't get it to work

I've followed the Quickstart at http://nootn.github.io/MiniProfiler.Windows/, and made different variations to the packages config, installed fasterflect and I still get that "Method 'Start' in type 'MiniProfiler.Windows.ConsoleProfilingProvider' from assembly 'MiniProfiler.Windows, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."

This is on Visual Studio on a clean project with framework set to 4 and 4.5.2.

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

Compatibility with MiniProfiler version 3.1.1.140

I am facing the following error
"Method 'Start' in type 'MiniProfiler.Windows.ConsoleProfilingProvider' from assembly 'MiniProfiler.Windows, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. I am using MiniProfiler version 3.1.1.140

MissingMethodException at StopAndGetConsoleFriendlyOutputStringWithSqlTimings() method

I installed MiniProfiler.Windows 1.0.0 Nuget package in my EF 6.1 winform project (.NET 4)
and used in following code:

 public class MiniProfilerQueryHandlerDecorator<TQuery, TResult> : IQueryHandler<TQuery,    TResult>
 where TQuery : IQueryParameter<TResult>
{
    private readonly IQueryHandler<TQuery, TResult> _decoratee;

    public MiniProfilerQueryHandlerDecorator(IQueryHandler<TQuery, TResult> decoratee)
    {
        _decoratee = decoratee;
    }

    public TResult Handle(TQuery request)
    {
        TResult result;
        using (StackExchange.Profiling.MiniProfiler.Current.Step("Call QueryHandler"))
        {
            result =_decoratee.Handle(request);
        }
        var friendlyString = ConsoleProfiling.StopAndGetConsoleFriendlyOutputStringWithSqlTimings();
        Console.WriteLine(friendlyString);
        Debug.WriteLine(friendlyString);
        return result;
    }
}

but in runtime I get following MissingMethodException:

{"Method not found: 'Boolean StackExchange.Profiling.MiniProfiler.get_HasSqlTimings()'."}
at MiniProfiler.Windows.ConsoleProfiling.StopAndGetConsoleFriendlyOutputStringWithSqlTimings(Int32 includeSqlWithDurationMoreThanMilliseconds, Int32 takeTopNumberOfQueries)
at IASCo.Application.Core.CQRS.Query.QueryHandlerDecorators.MiniProfilerQueryHandlerDecorator2.Handle(TQuery request) in e:\DevProjects\PPL\SRC\NewStructure\IASCo.Application.Core\CQRS\Query\QueryHandlerDecorators\MiniProfilerQueryHandlerDecorator.cs:line 27 at Level4UI.Lists.BaseListFormStructure4.LoadPageData(Expression1 predicate) in e:\DevProjects\PPL\SRC\Level4UI\Lists\BaseListFormStructure.cs:line 46 at Level4UI.Lists.NewListForm4..ctor(BaseListFormStructure`4 listFormStructure, String clickedMenu) in e:\DevProjects\PPL\SRC\Level4UI\Lists\NewListForm.cs:line 72
at Level4UI.MainForm.NavigationItemsClicked(Object sender, NavBarLinkEventArgs e) in e:\DevProjects\PPL\SRC\Level4UI\MainForm.cs:line 422
at DevExpress.XtraNavBar.NavBarItem.RaiseLinkEvent(Object linkEvent, NavBarItemLink link)
at DevExpress.XtraNavBar.NavBarItem.RaiseLinkClicked(NavBarItemLink link)
at DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(NavBarItemLink link)
at DevExpress.XtraNavBar.NavBarControl.RaiseLinkClicked(NavBarItemLink link)
at DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(NavBarHitInfo hitInfo)
at DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoClick(NavBarHitInfo hitInfo)
at DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(MouseEventArgs e)
at DevExpress.XtraNavBar.NavBarControl.OnMouseUp(MouseEventArgs ev)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraNavBar.NavBarControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Level4UI.Program.Main() in e:\DevProjects\PPL\SRC\Level4UI\Program.cs:line 77

at var friendlyString = ConsoleProfiling.StopAndGetConsoleFriendlyOutputStringWithSqlTimings(); line.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.