Sorry about the dumb question. I am new to Xperf.
I am on 64-bit Windows 8.1 and my application is also x64. I want to capture both the callstacks and my defined events in the application using Xperf.
I registered the GUID 35f7872e-9b6d-4a9b-a674-66f1edd66d5c
in my application.
When I was using:
xperf -on PROC_THREAD+LOADER+Base -start UserSession -on 35f7872e-9b6d-4a9b-a674-66f1edd66d5c -BufferSize 1024 -stackwalk profile
I can get all the events but no callstack. However if I remove -on 35f7872e-9b6d-4a9b-a674-66f1edd66d5c
and the command lines becomes:
xperf -on PROC_THREAD+LOADER+Base -start UserSession -BufferSize 1024 -stackwalk profile
This way, I am able to capture all the callstack but no defined events.
Can anyone tell me what's the correct command line to use to capture both the callstack and the events? Also if you can point me to any good Xperf reference it would be even greater.
You need to add :::'stack'
to the command line to capture stacks for user mode events.
xperf -start UserSession -on 35f7872e-9b6d-4a9b-a674-66f1edd66d5c:::'stack'
A good xperf reference is the book "Inside Windows Debugging" and this blog.