Configuring Your Application For Offline Profiling

It is possible to generate a snapshot file from your application to be analyzed later using this code:

HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.InitializeOfflineProfiling(filename);

This will generate a file with a snapshot of all the Entity Framework activity in the application, which you can use for later analysis by loading the file into the profiler.