NHibernate Tool Profiler Configuration

Source: Internet
Author: User

1. Before use, you need to confirm the framework version, if it is 4.0 then use the following assembly to

In the project that created Isessionfactory, reference the Nhprofiler installation directory under the

HibernatingRhinos.Profiler.Appender.v4.dll

2. Before creating the Isessionfactory statement (new Configuration ()). Configure (). Buildsessionfactory ();) Insert the following code

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize ()

3. Then open the Nhprofiler tool, run the project, the left side will show all the nhibernate session, the right side will show the corresponding session of the detailed SQL statement

Note: Nhprofiler is a tool for running analysis on NHibernate

Introduction

NHibernate Profiler is a real-time visual debugger allowing a development team to gain valuable insight and perspective in To their usage of NHibernate. The product is architected with input coming from many top industry leaders within the NHibernate community. Alerts is presented in a concise code-review manner indicating patterns of misuse by your application. To streamline your efforts to correct the misuse, we provide links to the problematic code sections that triggered the Aler T

    • Cognitive application awareness.
    • Visual insight into the interaction between your database and application code.
    • Analysis and detection of common pitfalls when using NHibernate.
    • Analysis is delivered via perfectly styled SQL and linkable code execution.
    • Supports NHibernate 1.2.x, 2.x and 3.x

: Http://www.hibernatingrhinos.com/products/nhprof

NHibernate Tool Profiler Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.