Rename peak memory metric to memory_peak_resident

This commit is contained in:
David Peter committed 2026-10-05 20:23:55 +02:00
1 parent 0d86e78ede
commit 95118147af
10 files changed
+57 -54

No files matched your search

+2 -2
View File
@@ -277,7 +277,7 @@ impl Executor for ShellExecutor<'_> {
time_wall_clock: measurements.time_wall_clock_mean(),
time_user: measurements.time_user_mean(),
time_system: measurements.time_system_mean(),
peak_memory_usage: None,
memory_peak_resident: None,
exit_status: ExitStatus::default(),
});
@@ -335,7 +335,7 @@ impl Executor for MockExecutor {
time_wall_clock: Self::extract_time(command.get_command_line()),
time_user: Time::zero(),
time_system: Time::zero(),
peak_memory_usage: Some(Information::zero()),
memory_peak_resident: Some(Information::zero()),
exit_status,
})
}
+1 -1
View File
@@ -49,7 +49,7 @@ pub struct Measurement {
skip_serializing_if = "Option::is_none",
serialize_with = "serialize_optional_information"
)]
pub peak_memory_usage: Option<Information>,
pub memory_peak_resident: Option<Information>,
// The exit status of the process
#[serde(rename = "exit_code", serialize_with = "serialize_exit_status")]
+4 -4
View File
@@ -215,7 +215,7 @@ fn scheduler_basic() -> Result<()> {
time_system:
value: 0
unit: second
peak_memory_usage:
memory_peak_resident:
value: 0
unit: byte
exit_code: 0
@@ -228,7 +228,7 @@ fn scheduler_basic() -> Result<()> {
time_system:
value: 0
unit: second
peak_memory_usage:
memory_peak_resident:
value: 0
unit: byte
exit_code: 0
@@ -243,7 +243,7 @@ fn scheduler_basic() -> Result<()> {
time_system:
value: 0
unit: second
peak_memory_usage:
memory_peak_resident:
value: 0
unit: byte
exit_code: 0
@@ -256,7 +256,7 @@ fn scheduler_basic() -> Result<()> {
time_system:
value: 0
unit: second
peak_memory_usage:
memory_peak_resident:
value: 0
unit: byte
exit_code: 0