- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to profile a Windows Service written using .NET using VTune? Thanks.
-Suresh
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sureshk:
Sampling can be used on any code that runs on the system: application, driver, service, etc. As long as you have debug information for the module (i.e., exe, dll, etc.), the analyzer can display hotspots within your code.
To use call graph on a Windows service, there are special instructions. Please see http://support.intel.com/support/performancetools/vtune/sb/cs-006207-prd232.htm.
-dlanders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The above link does not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
http://www.intel.com/support/performancetools/vtune/v71/sb/cs-009677.htm is the correct one. It was the first in google search for 'call graph windows service'. There were no big changes in .NET related functionality, so there are chances the document is relevant for 9.0 as well.
regards, Andrei
http://www.intel.com/support/performancetools/vtune/v71/sb/cs-009677.htm is the correct one. It was the first in google search for 'call graph windows service'. There were no big changes in .NET related functionality, so there are chances the document is relevant for 9.0 as well.
regards, Andrei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That link isbroken too. Search seems useless.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's here.
Also, looks like we archived that original article (it has been 4 years, after all! :-}. Here is the content for reference:
Symptom:
No data is collected when I try to call graph my Windows* service.
Solution:
The Intel VTune analyzer, by default, does not have administrative privileges to access Windows services. Follow the steps listed below to enable the analyzer:
Also, looks like we archived that original article (it has been 4 years, after all! :-}. Here is the content for reference:
Symptom:
No data is collected when I try to call graph my Windows* service.
Solution:
The Intel VTune analyzer, by default, does not have administrative privileges to access Windows services. Follow the steps listed below to enable the analyzer:
- Make sure that you are logged in as Administrator on the system.
- Make sure that your service is installed and registered correctly.
- Open the Services applet (in Administrative Tools) and find your service in the list of installed services.
- If your service is running, stop it.
- Depending on your OS, click on the Startup button or right-click the service and select Properties, and change the StartUp type to Manual.
- Change LogOnAs to This Account and type "Administrator" in the This Account text box.
- Enter the password for the Administrator account. This will enable the analyzer to access the service when the activity is started.
- Confirm the password.
- Confirm that the service can be manually started and stopped.
The service cannow be call graphed using the following steps:
- Start the analyzer and select the Call Graph Wizard.
- Select Win32*/Win64* Profiling and press Next.
- Select No application to launch and press Next.
- Add your service to list of Modules of Interest and press Finish.
- Run the activity. When activity is run, the analyzer should instrument your service and prompt you to start the service.
- Start the service. The analyzer detects that the service has started and starts call graph analysis.
- Use the service - exercise the service by whatever means you have developed.
- Stop the service.
- Now, manually stop the analyzer activity by pressing the Stop button. The analyzer should produce a call graph for the selected service.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page