maurodx / slimtune

Automatically exported from code.google.com/p/slimtune
MIT License
0 stars 0 forks source link

Support profiling on existing process #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
feature request: 

My app will ask for credential and then create another process using given 
credential. In this case we cannot profile on the new process using slimtune. 
Is it possible to profile on existing process?
Thanks.

Original issue reported on code.google.com by baldp...@gmail.com on 20 Jul 2011 at 3:12

GoogleCodeExporter commented 9 years ago
It is. You will need to configure the child process' environment appropriately. 
If you take a look here:
http://code.google.com/p/slimtune/source/browse/trunk/SlimTuneUI/UICore/ILaunche
r.cs
You should get a pretty decent idea of how to set up the child environment, via 
the CreateProfilerEnvironment function. In fact you can just take the entire 
file, if you'd like.

Setting that environment is mainly what the Run function in the interface does. 
Once you set it up, you should be able to Connect from SlimTune and just have 
everything work.

Original comment by promit....@gmail.com on 20 Jul 2011 at 6:57