NHProf C# API -- determine if profiler has been initialized

304 Views Asked by At

In code, you initialize the NHibernateProfiler with this call:

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

Is there a way to determine if a profile has been initialized or not? I was looking for something like:

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

But to no avail (I wasn't really expecting this to work since the call is against a class, not an object).

Does such an API call exist?

1

There are 1 best solutions below

2
On

No, this option in not available as there is very little need for it, mainly because that you should initialize the profiler in the very beginning of your application.