Using NHibernate Profiler

NHibernate Profiler from Hibernating Rhinos is a powerful tool for analyzing, visualizing what is happening inside your NHibernate application, and for discovering issues you may have. In this recipe, we will show you how to get up and running with NHibernate Profiler.

Getting ready

Download NHibernate Profiler from http://nhprof.com and unzip it. As it is a commercial product, you will also need a license file. You can request a 30-day trial license from the NHProf website.

Using our Eg.Core model from Chapter 2, Models and Mapping, set up a new NHibernate console application with log4net, just as we did in Chapter 1, The Configuration and Schema.

How to do it...

  1. Install NHibernateProfiler.Appender using the NuGet Package ...

Get NHibernate 4.x Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.