Ejemplo n.º 1
0
 public static Command StopCommand() =>
 new Command(
     name: "stop",
     description: "Stops an EventPipe session.",
     symbols: new Option[] {
     CommonOptions.ProcessIdOption(),
     SessionIdOption(),
 },
     handler: CommandHandler.Create <IConsole, int, ulong>(Stop),
     isHidden: true);
Ejemplo n.º 2
0
 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());
Ejemplo n.º 3
0
 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));
Ejemplo n.º 4
0
 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()
 };