Red Gate forums :: View topic - Program interaction with the Profiler.
Return to www.red-gate.com RSS Feed Available

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

Program interaction with the Profiler.

Search in ANTS Performance Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
fiddleus



Joined: 20 Jul 2012
Posts: 1

PostPosted: Fri Jul 20, 2012 4:20 pm    Post subject: Program interaction with the Profiler. Reply with quote

My application crashes when launched with the profiler, so I need to connect after it's up and running. It's pretty easy for me to launch it, tweak any running parameters, click 'Go', then start the profiler. I also implemented an auto-shutdown feature so that when the real work was complete the profiler would not get 'junk input' afterwards.

Both of these situations are leading me to ask if there is any way to interact with the profiler from my application. Is there any way for my appto halt until the profiler connects, or to command the profiler to stop collection of data? The halt functionality wouldn't even be necessary -- in my case -- if there were just start/stop commands.

I'd also be interested in hearing any suggestions to more fluidly achieve what I'm attempting.

Thanks!
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 591

PostPosted: Mon Jul 23, 2012 1:13 pm    Post subject: Reply with quote

Quote:
My application crashes when launched with the profiler, so I need to connect after it's up and running.


This sounds, very much, like you should try the "Attach to process" profiling mode. This fulfils the above requirement however, it *only* works for .Net 4 applications/websites and it does not work on Windows XP. Hopefully, its still an option for you.


Quote:

Both of these situations are leading me to ask if there is any way to interact with the profiler from my application. Is there any way for my appto halt until the profiler connects, or to command the profiler to stop collection of data? The halt functionality wouldn't even be necessary -- in my case -- if there were just start/stop commands.

I'd also be interested in hearing any suggestions to more fluidly achieve what I'm attempting.


Try the above as I think it fits well. If not, I'll scratch my head and have another think (there's no interactive mode but maybe we can work something out. I guess any process can be paused...)
Back to top
View user's profile Send private message
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