| 19 | /// targets from codspeed.yaml. |
| 20 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 21 | pub struct BenchmarkCommand { |
| 22 | /// The command and arguments to execute |
| 23 | pub command: Vec<String>, |
| 24 | |
| 25 | /// Optional benchmark name |
| 26 | #[serde(default, skip_serializing_if = "Option::is_none")] |
| 27 | pub name: Option<String>, |
| 28 | |
| 29 | /// Walltime execution options (flattened into the JSON object) |
| 30 | #[serde(default)] |
| 31 | pub walltime_args: walltime::WalltimeExecutionArgs, |
| 32 | } |
| 33 | |
| 34 | /// Read and parse benchmark commands from stdin as JSON |
| 35 | pub fn read_commands_from_stdin() -> Result<Vec<BenchmarkCommand>> { |
nothing calls this directly
no outgoing calls
no test coverage detected