How to tell if the profiler has been initialized?

21 views
Skip to first unread message

DanPlaskon

unread,
Jan 27, 2017, 2:17:35 PM1/27/17
to nhprof
Is there a way to programmatically determine if a call to NHibernateProfiler.Initialize() has been made?

Oren Eini (Ayende Rahien)

unread,
Jan 27, 2017, 2:19:11 PM1/27/17
to nhprof
There is ProfilerInfrastructure.IsInitalized
However, the profiler typically needs to be started at the beginning of the app

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Fri, Jan 27, 2017 at 9:17 PM, DanPlaskon <dpla...@gmail.com> wrote:
Is there a way to programmatically determine if a call to NHibernateProfiler.Initialize() has been made?

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+unsubscribe@googlegroups.com.
To post to this group, send email to nhp...@googlegroups.com.
Visit this group at https://groups.google.com/group/nhprof.
For more options, visit https://groups.google.com/d/optout.

DanPlaskon

unread,
Jan 27, 2017, 2:28:34 PM1/27/17
to nhprof
Thanks!

I have a fairly complex condition that determines if the profiler gets initialized or not -- I need an easy way to determine if that was the case deeper in my infrastructure.

Sounds like this is exactly what I need :)


On Friday, January 27, 2017 at 2:19:11 PM UTC-5, Ayende Rahien wrote:
There is ProfilerInfrastructure.IsInitalized
However, the profiler typically needs to be started at the beginning of the app

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Fri, Jan 27, 2017 at 9:17 PM, DanPlaskon <dpla...@gmail.com> wrote:
Is there a way to programmatically determine if a call to NHibernateProfiler.Initialize() has been made?

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages