Issue with Vsperfmon in 64 bit
-
Thursday, June 17, 2010 3:30 PM
I am trying to get the coverage of 32 bit binaries in a 64 bit machine. The application under test is also running in 32 bit mode. I am using the 32 bit tools set for instrumenting and collecting code coverage data (vsinstr, vsperfmon and vsperfcmd) as mentioned here. But I am not getting any coverage data and in the event viewer I see the below message being logged continuously : "Profile monitor does not appear to be running".
The same works fine on a 32 bit machine. Am I missing something here ?
All Replies
-
Thursday, June 17, 2010 11:10 PMModerator
Is your target process running as a service? If so and you aren't already you'll need to add the '/cs' for crosssession and potentially the '/user' switches when starting vsperfmon (or vsperfcmd) to allow the service with the instrumented binary to communicate with the monitor.
In Vista and later operating systems services are run in a seperate sesssion to isolate them from the currently-logged on user (as a security measure) and the monitor needs to be given explicit permission to set everything up to communicate across sessions.
To help our tracking, please mark replies as answers if they resolve your issue.- Proposed As Answer by Tim VarcakMicrosoft Employee, Moderator Thursday, June 17, 2010 11:10 PM
- Marked As Answer by Roahn LuoModerator Monday, June 21, 2010 1:54 AM

