Profiling NHibernate with Glimpse
Glimpse is a popular diagnostics and profiling framework, built especially for .NET web applications. In this recipe, we will show you how to use Glimpse and the Glimpse.NHibernate add-on, in order to profile NHibernate requests.
Getting ready
Open an existing ASP.NET web application project that uses NHibernate or complete the Setting up session-per-web request recipe from Chapter 3, Sessions and Transactions.
How to do it...
- Install Glimpse for MVC using the NuGet Package Manager Console by executing the following command:
Install-Package Glimpse.MVC5
- Install the
NHibernate.Glimpse
package using the NuGet Package Manager Console by executing the following command:Install-Package NHibernate.Glimpse
- Run the web application. ...
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.