Coder Social home page Coder Social logo

codefork / entityprofiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sebazzz/entityprofiler

0.0 1.0 0.0 4.43 MB

An open-source initiative for Entity Framework profiler

License: GNU Lesser General Public License v3.0

C# 99.54% Smalltalk 0.46%

entityprofiler's Introduction

EntityProfiler

An initiative for creating an open-source Entity Framework profiler.

EntityProfiler

Features

  • View syntax highlighted queries and their source, including the stack trace.
  • Context-aware: Knows about HttpContext when using ASP.NET.
  • Duplicate or SELECT 1+N query detection: shows the number of duplicated queries.
  • Stack Trace reduction: removes confusing and unneccesary frames from Entity Framework from the top of the call stack.
  • Works with ASP.NET and desktop apps.
  • Allows to run and view the queries results (inside).
  • Call stack to code navigation. Open in Visual Studio or on the integrated editor.
  • SQL variables replacement to the literal value (with comments).

How to use it

Install the EntityProfiler.Interceptor NuGet package or install manually:

  1. Add references to EntityProfiler.Common and EntityProfiler.Interceptor to your project.

  2. Register the interceptor in either the DbConfiguration or in your web.config/app.config file:

     <entityFramework>
        ...
        
        <interceptors>
          <interceptor type="EntityProfiler.Interceptor.Core.ProfilingInterceptor, EntityProfiler.Interceptor"/>
        </interceptors>
     </entityFramework>
    
  3. Run the EntityProfiler.UI application which will automatically connect.

Current limitations

Only one profiling application instance is allowed. Currently the interceptor opens a TCP socket on a fixed port on localhost and no configuration is yet possible.

Contributions

This project accepts contributions. Please put an issue in the issue track first to prevent confusion.

entityprofiler's People

Contributors

sebazzz avatar julianpaulozzi avatar

Watchers

James Cloos avatar

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.