| Author |
Message |
fiddleus
Joined: 20 Jul 2012 Posts: 1
|
Posted: Fri Jul 20, 2012 4:20 pm Post subject: Program interaction with the Profiler. |
|
|
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 |
|
 |
Chris.Allen
Joined: 12 Mar 2009 Posts: 442
|
Posted: Mon Jul 23, 2012 1:13 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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