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.LinqToSql.LinqToSqlProfiler.InitializeOfflineProfiling(filename);

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