perfview icon indicating copy to clipboard operation
perfview copied to clipboard

`FocusProcess` checkbox is hidden.

Open akeit0 opened this issue 5 months ago • 2 comments

It is invisible because of the same Grid.Row value as Command. https://github.com/microsoft/perfview/blob/bb36ed72043d7381eb1a7b4cb7265dabc06365fa/src/PerfView/Dialogs/RunCommandDialog.xaml#L41-L53

Image

akeit0 avatar Jul 16 '25 01:07 akeit0

Looking at this, it appears this was by design. The focus process capability is not exposed in the UI if you are using the Run command. I suspect the reason for this is that we don't know the name or PID of the process until after tracing has started. If we wanted to try and fix this, we'd need to make some educated guesses on what the name of the process is before we start it, so taht we can tell ETW ahead of time.

Is this something that you're interested in implementing?

brianrob avatar Jul 16 '25 15:07 brianrob

Thank you for your reply! I wanted to focus on processes run from command, so for now I was able to achieve what I wanted to do by running from command line and Start collection in perfview, but I still wanted to run command from perfview. I would like to have the ability to run from perfview, wait until the target named process is recognized, and then collect.

I will see if I can implement this....

akeit0 avatar Jul 16 '25 23:07 akeit0