Error VSP1312: Process <PID> not found in list of active profile targets.

Bloqueada Error VSP1312: Process <PID> not found in list of active profile targets.

  • jueves, 08 de septiembre de 2011 17:03
     
     

    I am following the instructions in http://msdn.microsoft.com/en-us/library/dd255369.aspx and getting above error when using

    VSPerfCmd.exe" /ProcessOn:PID

    I am an admin of the machine and both the process being profiled and VSPerfMon.exe are under my user name. Also no virus scanners are installed on the machine. I am trying to profile a 64-bit C++ application with 64-bit tools (VSPerfCmd and VSPerfMon.exe). Binaries are instrumented. What could make the process not being included in the "list of active profile targets"?

    Also do profiler tools log more detailed messages anywhere?

    Thanks.


    Jeevaka

Todas las respuestas

  • lunes, 12 de septiembre de 2011 10:40
    Moderador
     
     

    Did you use the "/user" switch? if not, you can try "/user:Everyone".

    See also: Instrumentation issue : VSP1312 : Process <PID> not found in list of active profile targets


    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.

  • lunes, 12 de septiembre de 2011 15:47
     
     

    Yes, I saw that and tried "/user:Everyone". Also I made sure that both processes are under same user. Here is the full test:

    E:\Projects\Framework\trunk\x64\Release>"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64\VSPerfCmd.exe" /start:trace /user:Everyone /output:stra3.vsp

    Microsoft (R) VSPerf Command Version 10.0.40219 x64

    Copyright (C) Microsoft Corp. All rights reserved.

    E:\Projects\Framework\trunk\x64\Release>start stra ../../../config/basic.cfg

    E:\Projects\Framework\trunk\x64\Release>"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64\VSPerfCmd.exe" /processon:1268

    Microsoft (R) VSPerf Command Version 10.0.40219 x64

    Copyright (C) Microsoft Corp. All rights reserved.

    Process logging control

    ------------------------------------------------------------

    Error VSP1312: Process 1268 not found in list of active profile targets.

    E:\Projects\Framework\trunk\x64\Release>"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64\VSPerfCmd.exe" /shutdown

    Microsoft (R) VSPerf Command Version 10.0.40219 x64

    Copyright (C) Microsoft Corp. All rights reserved.

     

    Shutting down the Profile Monitor

    ------------------------------------------------------------

    Thanks


    Jeevaka
  • martes, 13 de septiembre de 2011 7:29
    Moderador
     
     

    Does the target process run under same session with VSPerfCmd? If they run under different session, please try "/crosssession" switch.

     

    From Windows Vista, User Account Control was introduced to improve security, so, even though you logged on with an admin user, you also need to run application as administrator by right-click the executable and select "run as administrator".


    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.

  • martes, 13 de septiembre de 2011 13:54
     
     

    /crosssession did not help. If "session" means user session, then I am starting the application and the profiler from the same command prompt.

    This is an XP machine. I started a command prompt with "run as" Administrator and started both the profiler and the test application from that. From proccess monitor I can see that both are running under admin account. But still I get the same error. Each time I remembered to use the new PID.

    Also I can run the profiler from IDE fine.

     


    Jeevaka
  • lunes, 26 de septiembre de 2011 17:36
     
     

    Hi

     

    Did you found your answer ? I'm having the same issue while trying to profile application running in the azure emulator

  • lunes, 26 de septiembre de 2011 17:44
     
     

    I haven't found a solution and running the profiler from IDE which is time consuming due to another bug.

    However this error seem to be a generic error that could be due to many reasons. I noticed in other forums/posts that some users who have followed recommendations by eryang above have been able to avoid the problem.

    Jeevaka


    Jeevaka