Configuring your application for offline profiling

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


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.