Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5258 Discussions

how to profile windows service

berserk
Beginner
1,009 Views

What options if any should be specified to profile a windows service (32 bit exe) ?

I can profile a normal exe, but it gives no data error for attach to service, does it need a non "system" user for service logon ?

 

Labels (1)
0 Kudos
1 Reply
yuzhang3_intel
Moderator
971 Views

Start vtune.exe/vtune-gui.exe from an Administrator terminal(cmd.exe), and then run hardware event-based sampling collection as below,

https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-0/hw-event-based-sampling-collection.html

 

It looks it can work.

C:\Users\yuzhang3\Downloads>vtune -collect uarch-exploration -- C:\WINDOWS\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe

C:\Users\yuzhang3\Downloads>vtune -collect hotspots -knob sampling-mode=hw -- C:\WINDOWS\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe

 

 

0 Kudos
Reply