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?
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.