MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / ExecAndRunSharedArgs

Class ExecAndRunSharedArgs

src/cli/shared.rs:27–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25/// Arguments shared between run and exec commands
26#[derive(Args, Debug, Clone)]
27pub struct ExecAndRunSharedArgs {
28 /// The upload URL to use for uploading the results, useful for on-premises installations
29 #[arg(long, env = "CODSPEED_UPLOAD_URL")]
30 pub upload_url: Option<String>,
31
32 /// The token to use for uploading the results,
33 ///
34 /// It can be either a CodSpeed token retrieved from the repository setting
35 /// or an OIDC token issued by the identity provider.
36 #[arg(long, env = "CODSPEED_TOKEN")]
37 pub token: Option<String>,
38
39 /// The repository the benchmark is associated with, under the format `owner/repo`.
40 #[arg(short, long, env = "CODSPEED_REPOSITORY")]
41 pub repository: Option<String>,
42
43 /// The repository provider to use in case --repository is used. Defaults to github
44 #[arg(
45 long,
46 env = "CODSPEED_PROVIDER",
47 requires = "repository",
48 ignore_case = true
49 )]
50 pub provider: Option<RepositoryProvider>,
51
52 /// The directory where the command will be executed.
53 #[arg(long)]
54 pub working_directory: Option<String>,
55
56 /// The mode to run the benchmarks in.
57 /// If not provided, the mode will be loaded from the shell session (set via `codspeed use <mode>`).
58 #[arg(
59 short,
60 long,
61 value_enum,
62 env = "CODSPEED_RUNNER_MODE",
63 value_delimiter = ','
64 )]
65 pub mode: Vec<RunnerMode>,
66
67 /// The Valgrind simulation tool to use (callgrind or tracegrind).
68 #[arg(long, value_enum, env = "CODSPEED_SIMULATION_TOOL", hide = true)]
69 pub simulation_tool: Option<SimulationTool>,
70
71 /// The profiler to use for walltime mode (perf or samply).
72 /// If not provided, the profiler is selected based on the platform.
73 #[arg(long, value_enum, env = "CODSPEED_WALLTIME_PROFILER", hide = true)]
74 pub walltime_profiler: Option<WalltimeProfiler>,
75
76 /// Profile folder to use for the run.
77 #[arg(long)]
78 pub profile_folder: Option<PathBuf>,
79
80 /// Only for debugging purposes, skips the upload of the results
81 #[arg(
82 long,
83 default_value = "false",
84 hide = true,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected