There are several ways to integrate the nhibernate profiler into your application. One way is to use the custom norkernate profiler log4net appender. You can learn how to use this method here:
http://nhprof.com/Learn/Usage/ProfileAppWithConfiguration
Another way to do this is to include HibernatingRhinos.Profiler.Appender.v4.0.dll in your project and include the code at startup (usually I include this in my helper class SessionFactory which initializes my SessionFactory and distributes ISessions):
Also, if you want to view nhibernate statistics from the nhibernate profiler, you need to include the following in the nhibernate configuration section:
<property name="generate_statistics">true</property>
All of this can be found here: http://nhprof.com/
Cole w
source share