Project Description

Free and simple open source profiler for Entity Framework from 4-6 version

Developer email

st.glushak[ at ]gmail.com

Download

Download latest version


Nuget package for Entity Framework 6: https://www.nuget.org/packages/EFlogger-For6
Nuget package for Entity Framework 4-5: https://www.nuget.org/packages/EFlogger-For4

API

Initialize EFlogger for EF6:
EFloggerFor6.Initialize();
Initialize EFlogger for EF4-5:
EFloggerFor4.Initialize();
Set new Profiler IP:
EFloggerFor6.SetProfilerClientIP("127.0.0.1");
Send text mesage to profiler:
EFloggerFor6.WriteMessage("Text message");
Start profiling, it already started by default:
EFloggerFor6.StartSendToClient();
Stop profiling:
EFloggerFor6.StopSendToClient();

Register delegate for logging:
EFloggerFor6.SetLogDelegate(CallbackLog);

private static void CallbackLog(string message)
{
     Trace.WriteLine(message);
}

EFloggerFor6.SetLogDelegate(CallbackLog);

private static void CallbackLog(SqlLogRecord sqlLogRecord)
{
  
}
Clear log in profiler:
EFloggerFor6.ClearLog();
Enable decompiling:
EFloggerFor6.EnableDecompiling();
Add new assemble to exclude list in stack trace:
EFloggerFor6.ExcludeAssembly("MyAssemly");

Screenshots

Main Form:


How to initialise:


Decompiled method body:


Stack Trace:

Path notes:

0.3.1:
Fixed exception in StackTraceSnipped when method.DeclaringType is null

0.2.9:
Updated log functionality.
You can track all commands inside of app:
EFloggerFor6.SetLogDelegate(CalbackLog);

private static void CalbackLog(string message)
{
        Trace.WriteLine(message);
}

0.2.6:
Fixed bug with decompilation flag
Fixed bug SocketException in profiler
0.2.0:
Fixed counting the number of returned rows

My other activity

1. C# Database Migrator: https://csharpdatabasemigrator.codeplex.com/
2. UI Exception Handler: https://uiexceptionhandler.codeplex.com/
3. My articles at russian IT site: http://habrahabr.ru/users/Diaver/topics/

Last edited Jan 13, 2016 at 4:40 AM by Diaver, version 9