Repository navigation
Open
Description
It is invisible because of the same Grid.Row value as Command.
perfview/src/PerfView/Dialogs/RunCommandDialog.xaml
Lines 41 to 53 in bb36ed7
| <TextBlock Grid.Row="1" Grid.Column="0" x:Name="CommandToRunLabel" Margin="5,0" VerticalAlignment="Center" ToolTip="The command line of the process to run while collecting data."> | |
| <Hyperlink Command="Help" CommandParameter="CommandToRunTextBox">Command:</Hyperlink> | |
| </TextBlock> | |
| <controls:HistoryComboBox Grid.Row="1" Margin="0,5,0,0" Grid.Column="1" x:Name="CommandToRunTextBox" VerticalAlignment="Center" KeyDown="CommandToRunKeyDown" AutomationProperties.Name="Command to run" /> | |
| <!-- FocusProcess section for Collect command--> | |
| <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal"> | |
| <TextBlock Name="FocusProcessLabel" Margin="5,0" VerticalAlignment="Center" ToolTip="Name or PID of the process to collect user-mode events for."> | |
| <Hyperlink Command="Help" CommandParameter="FocusProcessTextBox">Focus process:</Hyperlink> | |
| </TextBlock> | |
| <CheckBox Name="FocusProcessCheckBox" VerticalAlignment="Center" Margin="1,2,2,0" Click="FocusProcessCheckBoxClicked" IsChecked="false" AutomationProperties.Name="Focus process" /> | |
| </StackPanel> | |
| <TextBox Grid.Row="1" Margin="0,5,0,0" Grid.Column="1" x:Name="FocusProcessTextBox" VerticalAlignment="Center" /> |

Metadata
Metadata
Assignees
Labels
No labels
Activity
brianrob commentedon Jul 16, 2025
Looking at this, it appears this was by design. The focus process capability is not exposed in the UI if you are using the
Runcommand. 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?
akeit0 commentedon Jul 16, 2025
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 collectionin 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....