public static Command CollectCommand() => new Command( name: "collect", description: "Collects a diagnostic trace from a currently running process", symbols: new Option[] { CommonOptions.ProcessIdOption(), CircularBufferOption(), OutputPathOption(), ProvidersOption(), ProfileOption(), CommonOptions.FormatOption(), }, handler: HandlerDescriptor.FromDelegate((CollectDelegate)Collect).GetCommandHandler());
public static Command CollectCommand() => new Command( name: "collect", description: "Collects a diagnostic trace from a currently running process", symbols: new Option[] { CommonOptions.ProcessIdOption(), CircularBufferOption(), OutputPathOption(), ProvidersOption(), ProfileOption(), CommonOptions.FormatOption(), }, handler: System.CommandLine.Invocation.CommandHandler.Create <IConsole, int, FileInfo, uint, string, string, TraceFileFormat>(Collect));
public static Command ConvertCommand() => new Command( name: "convert", description: "Converts traces to alternate formats for use with alternate trace analysis tools. Can only convert from the netperf format.", argument: (new Argument <FileInfo>(defaultValue: new FileInfo(CollectCommandHandler.DefaultTraceName)) { Name = "input-filename", Description = $"Input trace file to be converted. Defaults to '{CollectCommandHandler.DefaultTraceName}'." }).ExistingOnly(), symbols: new Option[] { CommonOptions.FormatOption(), OutputOption() }, handler: System.CommandLine.Invocation.CommandHandler.Create <IConsole, FileInfo, TraceFileFormat, FileInfo>(ConvertFile), isHidden: false );
public static Command CollectCommand() => new Command( name: "collect", description: "Collects a diagnostic trace from a currently running process") { // Handler HandlerDescriptor.FromDelegate((CollectDelegate)Collect).GetCommandHandler(), // Options CommonOptions.ProcessIdOption(), CircularBufferOption(), OutputPathOption(), ProvidersOption(), ProfileOption(), CommonOptions.FormatOption(), DurationOption(), CLREventsOption(), CLREventLevelOption() };
public static Command CollectCommand() => new Command( name: "collect", description: "Collects a diagnostic trace from a currently running process or launch a child process and trace it. Append -- to the collect command to instruct the tool to run a command and trace it immediately. When tracing a child process, the exit code of dotnet-trace shall be that of the traced process unless the trace process encounters an error.") { // Handler HandlerDescriptor.FromDelegate((CollectDelegate)Collect).GetCommandHandler(), // Options CommonOptions.ProcessIdOption(), CircularBufferOption(), OutputPathOption(), ProvidersOption(), ProfileOption(), CommonOptions.FormatOption(), DurationOption(), CLREventsOption(), CLREventLevelOption(), CommonOptions.NameOption(), DiagnosticPortOption(), ShowChildIOOption() };