Skip to content
Myr

Rename to exit_code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 42e75c1 · Browse files · 4 files+17 added−25 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+17 added−25 removed

  • other:+17 added−25 removed

4 files+17 added−25 removed

modified:src/benchmark/measurement.rs+1 added-1 removed
30 unmodified lines
31 /// Maximum memory usage of the process32 pub peak_memory_usage: Byte,3334 // The exit status of the process35 #[serde(serialize_with = "serialize_exit_status")]35 #[serde(rename = "exit_code", serialize_with = "serialize_exit_status")]36 pub exit_status: ExitStatus,37}3839#[derive(Debug, Default, Clone, Serialize, PartialEq)]
103 unmodified lines
modified:src/benchmark/scheduler.rs+16 added-16 removed
204 unmodified lines
205fn scheduler_basic() -> Result<()> {206 insta::assert_yaml_snapshot!(generate_results(&["--runs=2", "sleep 0.123", "sleep 0.456"])?, @r#"207 - command: sleep 0.123208 measurements:209 - wall_clock_time: 0.123210 user_time: 0211 system_time: 0212 memory_usage_byte: 0209 - time_wall_clock: 0.123210 time_user: 0211 time_system: 0212 peak_memory_usage: 0213 exit_code: 0214 - wall_clock_time: 0.123215 user_time: 0216 system_time: 0217 memory_usage_byte: 0214 - time_wall_clock: 0.123215 time_user: 0216 time_system: 0217 peak_memory_usage: 0218 exit_code: 0219 - command: sleep 0.456220 measurements:221 - wall_clock_time: 0.456222 user_time: 0223 system_time: 0224 memory_usage_byte: 0221 - time_wall_clock: 0.456222 time_user: 0223 time_system: 0224 peak_memory_usage: 0225 exit_code: 0226 - wall_clock_time: 0.456227 user_time: 0228 system_time: 0229 memory_usage_byte: 0226 - time_wall_clock: 0.456227 time_user: 0228 time_system: 0229 peak_memory_usage: 0230 exit_code: 0231 "#);232233 Ok(())
1 unmodified line
modified:Cargo.lock-7 removed
390 unmodified lines
391 "rust_decimal",392 "serde",393 "serde_json",394 "shell-words",395 "static_assertions",395 "statistical",396 "tempfile",397 "thiserror",398 "uom",
419 unmodified lines
818source = "registry+https://github.com/rust-lang/crates.io-index"819checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"820821[[package]]823name = "static_assertions"824version = "1.1.0"825source = "registry+https://github.com/rust-lang/crates.io-index"826checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"827828[[package]]822name = "statistical"823version = "1.0.0"824source = "registry+https://github.com/rust-lang/crates.io-index"825checksum = "2a8f8038e7e7969abb3f1b7c2a811225e9296da208539e0f79c5251d6cac0025"
358 unmodified lines
modified:Cargo.toml-1 removed