Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5171 Discussions

how to profile windows service

berserk
Beginner
850 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
812 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