Red Gate forums :: View topic - How to detect when running within profiler?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 6
ANTS Performance Profiler 6 forum

How to detect when running within profiler?

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
KenDurden



Joined: 14 Nov 2011
Posts: 2

PostPosted: Mon Nov 14, 2011 6:25 pm    Post subject: How to detect when running within profiler? Reply with quote

Is it possible for the code to detect that it is running from within the profiler? I have certain areas of my code which have to be modified in order to work with the profiler, but which I do not want to leave as production changes.
Back to top
View user's profile Send private message
dene.boulton



Joined: 12 Oct 2011
Posts: 53
Location: Cambridge

PostPosted: Tue Nov 15, 2011 12:12 pm    Post subject: Reply with quote

Hi,

If you are just interested in if ANTS is profiling then you could check if the following environment variables are set:

cor_profiler
cor_enable_profiling


Regards,
Dene.
_________________
Dene Boulton
Red Gate
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group