Thursday, September 08, 2011 4:13 PM
I am following the instructions in http://msdn.microsoft.com/en-us/library/dd255369.aspx
I have the instrumented binaries. Once I do step 4 and then find the PID of the process and do the processon:PID the application has already started. Is there a way to start capturing data right from the beginning of the application start up?
I am profiling a unmanaged c++ (64-bit) application and using the 64-bit profiling tools.
- Edited by Jeevaka Friday, September 09, 2011 1:18 PM more details
Thursday, September 08, 2011 10:43 PM
It should be enogh fpr you to start the trace using
VsPerfCmd /start:trace /output:MyReport.vsp
And then start the application. Please refer to http://msdn.microsoft.com/en-us/library/aa985627.aspx
- Edited by Mattias SköldMVP Thursday, September 08, 2011 10:44 PM
Friday, September 09, 2011 1:17 PM
Thanks. But I am trying to profile an unmanaged c++ application. I will edit the original question with that detail. From the link you posted it appears that "VsPerfCLREnv /traceon" will cause the CLR to profile all the .NET applications and there is no need to tell the profiler which application to profile. In case of profiler for unmanaged apps we need to give the profiler the PID of the process. But to get the PID I need to start the application and then it is too late to profile the "start up" of the application.
Tuesday, September 13, 2011 7:36 AMModerator
Thank you for your question, we're doing research on this case, it might take some time before we get back to you.
Eric Yang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Saturday, September 17, 2011 4:02 AM
Do you create/build the project by yourself?
If so, you can use the "Launch Performance Wizard" to specify the target project.
MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Edited by Tracy Yu-MSFT Saturday, September 17, 2011 4:03 AM
Monday, September 19, 2011 6:05 PM
Thanks. My question was about running the profiler through command line as described in http://msdn.microsoft.com/en-us/library/dd255369.aspx
If am running the profiler manually, then yes, I can use the IDE. However it has become a wasteful process for large projects because instrumentation is done every time. See: http://connect.microsoft.com/VisualStudio/feedback/details/654009/relocation-of-instrumented-binaries-causes-profiling-to-fail