| Author |
Message |
KenDurden
Joined: 14 Nov 2011 Posts: 2
|
Posted: Mon Nov 14, 2011 6:25 pm Post subject: How to detect when running within profiler? |
|
|
| 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 |
|
 |
dene.boulton
Joined: 12 Oct 2011 Posts: 53 Location: Cambridge
|
Posted: Tue Nov 15, 2011 12:12 pm Post subject: |
|
|
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 |
|
 |
|
|
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