Hello,
I recently tried out some of my VTune command line workflows with VTune 2020 and ran into an issue. I commonly use the VTune CLI for basic hot-spots (user-mode sampling) of an existing process. An example command-line is:
vtune -collect=hotspots -no-follow-child -target-pid=1234 -data-limit=0 -knob sampling-interval=10 -r C:\myResults
this command works in VTune 2017, but in 2020 I receive an error:
链接已复制
Hi,
Thank you for posting in Intel VTune Profiler Forum.
The error might be because the sampling interval flag is already set in the predefined analysis type “hotspots” and if we need to do any further changes to that parameter , we must make a custom analysis with required values set.
You can use the following workaround to run the analysis successfully:
1) Select hotspots analysis type and enable user mode sampling in HOW pane.
2) In VTune GUI, we have an option to set the sampling interval: Click on copy symbol on top right corner to create a copy of the analysis configuration and you change the different parameters available (refer image 1)
3) You will see an option “CPU sampling interval, ms” where you can set the sampling interval time
4) Generate CLI command using the command line generator at the bottom (refer image 2) to get the correct CLI
Hope this helps.
Thanks and Regards,
Raeesa
